Clear cache after patching tests

This commit is contained in:
Jack Nagel 2014-06-23 21:39:10 -05:00
parent 63d3a17f2b
commit 88165986e8

View File

@ -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"