Clear cache after patching tests
This commit is contained in:
parent
63d3a17f2b
commit
88165986e8
@ -14,6 +14,11 @@ class PatchingTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
@_f.clear_cache
|
||||||
|
@_f.patchlist.select(&:external?).each(&:clear_cache)
|
||||||
|
end
|
||||||
|
|
||||||
def assert_patched(path)
|
def assert_patched(path)
|
||||||
s = File.read(path)
|
s = File.read(path)
|
||||||
refute_includes s, "NOOP", "#{path} was not patched as expected"
|
refute_includes s, "NOOP", "#{path} was not patched as expected"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user