diff options
-rw-r--r-- | actionview/test/template/digestor_test.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index 00bdfad3b7..779a7fb53c 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -224,25 +224,24 @@ class TemplateDigestorTest < ActionView::TestCase assert first_digest # If the cache is cleaned up correctly, subsequent digests should return the same - assert_equal first_digest, second_digest + assert_equal first_digest, second_digest end def test_digest_cache_cleanup_with_recursion_and_template_caching_off resolver_before = ActionView::Resolver.caching ActionView::Resolver.caching = false - + first_digest = digest("level/_recursion") second_digest = digest("level/_recursion") assert first_digest # If the cache is cleaned up correctly, subsequent digests should return the same - assert_equal first_digest, second_digest - + assert_equal first_digest, second_digest + ensure ActionView::Resolver.caching = resolver_before end - private def assert_logged(message) old_logger = ActionView::Base.logger |