aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-01-19 17:04:10 +0000
committerGitHub2017-01-19 17:04:10 +0000
commit0810039868f2fca0f69cbc6d869e53ae97129e98 (patch)
treea649d413731ac8a342500ac334960db1e748a126 /Library
parentf0249643d47f1dee4a0d08c440eb3afd6da3558a (diff)
parent366ee0b267dbf54d6dfda7210036e388bd2fd1ff (diff)
downloadbrew-0810039868f2fca0f69cbc6d869e53ae97129e98.tar.bz2
Merge pull request #1879 from alyssais/formulary_cache_clear
tests: add a missing Tab cache clear
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/formula_installer_test.rb2
-rw-r--r--Library/Homebrew/test/formulary_test.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/test/formula_installer_test.rb b/Library/Homebrew/test/formula_installer_test.rb
index 652548bd7..f86ae1488 100644
--- a/Library/Homebrew/test/formula_installer_test.rb
+++ b/Library/Homebrew/test/formula_installer_test.rb
@@ -61,6 +61,8 @@ class InstallTests < Homebrew::TestCase
assert_equal 3, bin.children.length
assert_predicate f.prefix/".brew/testball.rb", :readable?
end
+ ensure
+ ARGV.reject! { |a| a == "--with-invalid_flag" }
end
def test_bottle_unneeded_formula_install
diff --git a/Library/Homebrew/test/formulary_test.rb b/Library/Homebrew/test/formulary_test.rb
index 3d88c8407..a306c43df 100644
--- a/Library/Homebrew/test/formulary_test.rb
+++ b/Library/Homebrew/test/formulary_test.rb
@@ -110,6 +110,7 @@ class FormularyFactoryTest < Homebrew::TestCase
keg.uninstall
formula.clear_cache
formula.bottle.clear_cache
+ Tab.clear_cache
end
def test_load_from_contents