haml-edge 2.3.12 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/test/haml/template_test.rb +7 -1
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.13
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.13
|
data/test/haml/template_test.rb
CHANGED
@@ -140,10 +140,16 @@ class TemplateTest < Test::Unit::TestCase
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def test_action_view_templates_render_correctly
|
143
|
-
|
143
|
+
proc = lambda do
|
144
144
|
@base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
|
145
145
|
assert_renders_correctly 'content_for_layout'
|
146
146
|
end
|
147
|
+
|
148
|
+
if @base.respond_to?(:with_output_buffer)
|
149
|
+
@base.with_output_buffer("", &proc)
|
150
|
+
else
|
151
|
+
proc.call
|
152
|
+
end
|
147
153
|
end
|
148
154
|
|
149
155
|
def test_instance_variables_should_work_inside_templates
|