Permalink
Browse files

Ensure the state is clean after one failure

  • Loading branch information...
1 parent c44f8d2 commit b2ea0ff5725e40ea45ff022374f0b71637f0839f @rafaelfranca rafaelfranca committed Oct 16, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −5 actionview/test/template/digestor_test.rb
@@ -224,25 +224,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 b2ea0ff

Please sign in to comment.