aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlyssa Ross2017-01-21 14:55:12 +0000
committerGitHub2017-01-21 14:55:12 +0000
commitc9d7bab6ca280940d4ee03179c194b4df7caf85e (patch)
treeaa4f5b23ae36be9065e15452f93fbda8182c0e31 /Library
parentab9d8df792bca8292e815ebc635094b0474a6a44 (diff)
parent2d550b50081bfa0d641875f8657fd376afe0c10f (diff)
downloadbrew-c9d7bab6ca280940d4ee03179c194b4df7caf85e.tar.bz2
Merge pull request #1889 from alyssais/clear_tab_cache_in_teardown
tests: clear tab cache in global teardown
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/formulary_test.rb1
-rw-r--r--Library/Homebrew/test/support/helper/test_case.rb5
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/test/formulary_test.rb b/Library/Homebrew/test/formulary_test.rb
index 360c44a0d..2ed5cd3f0 100644
--- a/Library/Homebrew/test/formulary_test.rb
+++ b/Library/Homebrew/test/formulary_test.rb
@@ -112,7 +112,6 @@ class FormularyFactoryTest < Homebrew::TestCase
keg.uninstall
formula.clear_cache
formula.bottle.clear_cache
- Tab.clear_cache
end
def test_load_from_contents
diff --git a/Library/Homebrew/test/support/helper/test_case.rb b/Library/Homebrew/test/support/helper/test_case.rb
index 5becfeef1..170dd4cff 100644
--- a/Library/Homebrew/test/support/helper/test_case.rb
+++ b/Library/Homebrew/test/support/helper/test_case.rb
@@ -14,6 +14,11 @@ module Homebrew
TEST_SHA1 = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef".freeze
TEST_SHA256 = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef".freeze
+ def teardown
+ Tab.clear_cache
+ super
+ end
+
def formula(name = "formula_name", path = Formulary.core_path(name), spec = :stable, alias_path: nil, &block)
@_f = Class.new(Formula, &block).new(name, path, spec, alias_path: alias_path)
end