aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 21:39:10 -0500
committerJack Nagel2014-06-23 22:11:39 -0500
commit88165986e85afbd24ea40a792632f68711192dc0 (patch)
treedb1cac090aa8abae7a31cc6700013def40dd67ff /Library/Homebrew/test
parent63d3a17f2baf49c8259bc63447ab0970c3160a1f (diff)
downloadbrew-88165986e85afbd24ea40a792632f68711192dc0.tar.bz2
Clear cache after patching tests
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_patching.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index 9d187c400..9d9f95e1d 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -14,6 +14,11 @@ class PatchingTests < Homebrew::TestCase
end
end
+ def teardown
+ @_f.clear_cache
+ @_f.patchlist.select(&:external?).each(&:clear_cache)
+ end
+
def assert_patched(path)
s = File.read(path)
refute_includes s, "NOOP", "#{path} was not patched as expected"