Permalink
Browse files

Fix up the assertions to match Erubis' meaning of :trim

  • Loading branch information...
1 parent b0d32d1 commit 3823101254e4febb049493065736d29455c03050 @NZKoz committed Oct 7, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/test/controller/render_test.rb
  2. +1 −1 actionpack/test/template/render_test.rb
@@ -1050,7 +1050,7 @@ def test_rendering_with_conflicting_local_vars
def test_action_talk_to_layout
get :action_talk_to_layout
- assert_equal "<title>Talking to the layout</title>\nAction was here!", @response.body
+ assert_equal "<title>Talking to the layout</title>\n\nAction was here!", @response.body
end
# :addressed:
@@ -229,7 +229,7 @@ def test_render_with_layout
end
def test_render_with_nested_layout
- assert_equal %(<title>title</title>\n<div id="column">column</div>\n<div id="content">content</div>\n),
+ assert_equal %(<title>title</title>\n\n\n<div id="column">column</div>\n<div id="content">content</div>\n),
@view.render(:file => "test/nested_layout.erb", :layout => "layouts/yield")
end

0 comments on commit 3823101

Please sign in to comment.