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

Break a window :/

上级 748c78ff
......@@ -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
......
<% cache do %>
Fragment caching in a partial
<% end %>
\ No newline at end of file
Old fragment caching in a partial
<% end %>
<body>
<% cache do %><p>ERB</p><% end %>
</body>
\ No newline at end of file
<%= cache do %><p>ERB</p><% end %>
</body>
Hello
<% cache do %>This bit's fragment cached<% end %>
<%= cache do %>This bit's fragment cached<% end %>
<%= 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.
先完成此消息的编辑!
想要评论请 注册