提交 fe381d21 编写于 作者: J Javan Makhmali

Move and rename test

上级 1ee4eebb
......@@ -276,6 +276,13 @@ def test_dependencies_via_options_results_in_different_digest
assert_not_equal digest_phone, digest_fridge_phone
end
def test_different_formats_with_same_logical_template_names_results_in_different_digests
html_digest = digest("comments/_comment", format: :html)
json_digest = digest("comments/_comment", format: :json)
assert_not_equal html_digest, json_digest
end
def test_digest_cache_cleanup_with_recursion
first_digest = digest("level/_recursion")
second_digest = digest("level/_recursion")
......@@ -298,13 +305,6 @@ def test_digest_cache_cleanup_with_recursion_and_template_caching_off
end
end
def test_different_formats
html_digest = digest("comments/_comment", format: :html)
json_digest = digest("comments/_comment", format: :json)
assert_not_equal html_digest, json_digest
end
private
def assert_logged(message)
old_logger = ActionView::Base.logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册