Browse files

Break a window :/

  • Loading branch information...
1 parent 748c78f commit b65b989725320dc9e424bab7536f062d0dc94b0f @jeremy jeremy committed Mar 15, 2010
View
2 actionpack/test/controller/caching_test.rb
@@ -726,7 +726,7 @@ def test_fragment_caching_in_rjs_partials
def test_html_formatted_fragment_caching
get :formatted_fragment_cached, :format => "html"
assert_response :success
- expected_body = "<body>\n<p>ERB</p>\n</body>"
+ expected_body = "<body>\n<p>ERB</p>\n</body>\n"
assert_equal expected_body, @response.body
View
4 actionpack/test/fixtures/functional_caching/_partial.erb
@@ -1,3 +1,3 @@
<% cache do %>
-Fragment caching in a partial
-<% end %>
+Old fragment caching in a partial
+<% end %>
View
4 actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb
@@ -1,3 +1,3 @@
<body>
-<% cache do %><p>ERB</p><% end %>
-</body>
+<%= cache do %><p>ERB</p><% end %>
+</body>
View
2 actionpack/test/fixtures/functional_caching/fragment_cached.html.erb
@@ -1,2 +1,2 @@
Hello
-<% cache do %>This bit's fragment cached<% end %>
+<%= cache do %>This bit's fragment cached<% end %>
View
2 actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb
@@ -1,2 +1,2 @@
<%= render :inline => 'Some inline content' %>
-<% cache do %>Some cached content<% end %>
+<%= cache do %>Some cached content<% end %>

0 comments on commit b65b989

Please sign in to comment.