Skip to content
Browse files

Ensure the state is clean after one failure

  • Loading branch information...
1 parent 6fcad8c commit 54f836e7bfcf2e743503d59437552b8dcb714ea8 @rafaelfranca rafaelfranca committed
Showing with 4 additions and 5 deletions.
  1. +4 −5 actionpack/test/template/digestor_test.rb
View
9 actionpack/test/template/digestor_test.rb
@@ -200,25 +200,24 @@ def test_digest_cache_cleanup_with_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
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

0 comments on commit 54f836e

Please sign in to comment.
Something went wrong with that request. Please try again.