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

[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