From 88165986e85afbd24ea40a792632f68711192dc0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 23 Jun 2014 21:39:10 -0500 Subject: [PATCH] Clear cache after patching tests --- Library/Homebrew/test/test_patching.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index 9d187c400d..9d9f95e1d6 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"