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:
parent
1ae4308e85
commit
3146b339b2
3 changed files with 1 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
%html
|
||||
%head
|
||||
%body
|
||||
#content
|
||||
= @content_for_layout
|
||||
#yieldy
|
||||
= yield :layout
|
||||
#nosym
|
||||
|
|
Loading…
Reference in a new issue