1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Remove obsolete test

Rails < 3 is no longer supported.

Remove out of date test that is only relevant for Rails < 3.
This commit is contained in:
Matt Wildig 2012-06-13 17:37:53 +01:00
parent e8ac2c1ea5
commit f9b83de990

View file

@ -130,23 +130,6 @@ class TemplateTest < MiniTest::Unit::TestCase
end
end
if ActionPack::VERSION::MAJOR < 3
# Rails 3.0.0 deprecates the use of yield with a layout
# for calls to render :file
def test_action_view_templates_render_correctly
proc = lambda do
@base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
assert_renders_correctly 'content_for_layout'
end
if @base.respond_to?(:with_output_buffer)
@base.with_output_buffer("", &proc)
else
proc.call
end
end
end
def test_instance_variables_should_work_inside_templates
@base.instance_variable_set("@content_for_layout", 'something')
assert_equal("<p>something</p>", render("%p= @content_for_layout").chomp)