提交 b65b9897 编写于 作者: J Jeremy Kemper

Break a window :/

上级 748c78ff
...@@ -726,7 +726,7 @@ def test_fragment_caching_in_rjs_partials ...@@ -726,7 +726,7 @@ def test_fragment_caching_in_rjs_partials
def test_html_formatted_fragment_caching def test_html_formatted_fragment_caching
get :formatted_fragment_cached, :format => "html" get :formatted_fragment_cached, :format => "html"
assert_response :success 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 assert_equal expected_body, @response.body
......
<% cache do %> <% cache do %>
Fragment caching in a partial Old fragment caching in a partial
<% end %> <% end %>
\ No newline at end of file
<body> <body>
<% cache do %><p>ERB</p><% end %> <%= cache do %><p>ERB</p><% end %>
</body> </body>
\ No newline at end of file
Hello Hello
<% cache do %>This bit's fragment cached<% end %> <%= cache do %>This bit's fragment cached<% end %>
<%= render :inline => 'Some inline content' %> <%= render :inline => 'Some inline content' %>
<% cache do %>Some cached content<% end %> <%= cache do %>Some cached content<% end %>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册