diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-16 19:43:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-16 19:43:10 -0300 |
commit | b2ea0ff5725e40ea45ff022374f0b71637f0839f (patch) | |
tree | 75cb8682aa83d6ae545a80427d5a56cfee1fc2a8 | |
parent | c44f8d255b3839142dd04c17b62ad57054ba41d4 (diff) | |
download | rails-b2ea0ff5725e40ea45ff022374f0b71637f0839f.tar.gz rails-b2ea0ff5725e40ea45ff022374f0b71637f0839f.tar.bz2 rails-b2ea0ff5725e40ea45ff022374f0b71637f0839f.zip |
Ensure the state is clean after one failure
-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 |