diff options
author | Javan Makhmali <javan@javan.us> | 2016-06-15 18:00:34 -0400 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2016-06-15 18:25:18 -0400 |
commit | fe381d21f7bfd7c6727bba00f5c9e8fd6e2fc7b6 (patch) | |
tree | d2fc1b75ae133b92f0b30c6f6254ae611f2769f0 /actionview/test | |
parent | 1ee4eebb2b2da07e49bb7d467f5f9d5497bcf718 (diff) | |
download | rails-fe381d21f7bfd7c6727bba00f5c9e8fd6e2fc7b6.tar.gz rails-fe381d21f7bfd7c6727bba00f5c9e8fd6e2fc7b6.tar.bz2 rails-fe381d21f7bfd7c6727bba00f5c9e8fd6e2fc7b6.zip |
Move and rename test
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 |