Fix directory leak in test_cleanup

This commit is contained in:
Jack Nagel 2014-06-23 21:34:20 -05:00
parent c2337771f7
commit 9a6d2a31d9

View File

@ -23,5 +23,8 @@ class CleanupTests < Homebrew::TestCase
refute_predicate f1, :installed?
refute_predicate f2, :installed?
assert_predicate f3, :installed?
ensure
[f1, f2, f3].each(&:clear_cache)
f3.rack.rmtree
end
end