[Haml] Fix a test error under 1.9.
This commit is contained in:
parent
e907b2c382
commit
8c7f5e0d95
|
@ -140,9 +140,11 @@ class TemplateTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_action_view_templates_render_correctly
|
def test_action_view_templates_render_correctly
|
||||||
|
@base.with_output_buffer("") do
|
||||||
@base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
|
@base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
|
||||||
assert_renders_correctly 'content_for_layout'
|
assert_renders_correctly 'content_for_layout'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_instance_variables_should_work_inside_templates
|
def test_instance_variables_should_work_inside_templates
|
||||||
@base.instance_variable_set("@content_for_layout", 'something')
|
@base.instance_variable_set("@content_for_layout", 'something')
|
||||||
|
|
Loading…
Reference in New Issue