Skip to content
Snippets Groups Projects
Commit c9d7bab6 authored by Alyssa Ross's avatar Alyssa Ross Committed by GitHub
Browse files

Merge pull request #1889 from alyssais/clear_tab_cache_in_teardown

tests: clear tab cache in global teardown
parents ab9d8df7 2d550b50
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment