[Haml] Don't test for the now-deprecated @content_for_layout var.

This commit is contained in:
Nathan Weizenbaum 2009-07-04 19:07:41 -07:00
parent 1ae4308e85
commit 3146b339b2
3 changed files with 1 additions and 6 deletions

View File

@ -2,9 +2,6 @@
<html>
<head></head>
<body>
<div id='content'>
Lorem ipsum dolor sit amet
</div>
<div id='yieldy'>
Lorem ipsum dolor sit amet
</div>

View File

@ -140,7 +140,7 @@ class TemplateTest < Test::Unit::TestCase
end
def test_action_view_templates_render_correctly
@base.instance_variable_set("@content_for_layout", 'Lorem ipsum dolor sit amet')
@base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
assert_renders_correctly 'content_for_layout'
end

View File

@ -2,8 +2,6 @@
%html
%head
%body
#content
= @content_for_layout
#yieldy
= yield :layout
#nosym