diff options
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/digestor_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index e39d6ae810..dd8a6accf8 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -276,6 +276,13 @@ class TemplateDigestorTest < ActionView::TestCase 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 @@ class TemplateDigestorTest < ActionView::TestCase 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 |