Merge pull request #4480 from reitermarkus/clear-tap-cache

Clear `Tap` cache before each example.
This commit is contained in:
Markus Reiter 2018-07-16 11:10:51 +02:00 committed by GitHub
commit e61969256f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,8 @@ RSpec.configure do |config|
end end
begin begin
Tap.clear_cache
TEST_DIRECTORIES.each(&:mkpath) TEST_DIRECTORIES.each(&:mkpath)
@__homebrew_failed = Homebrew.failed? @__homebrew_failed = Homebrew.failed?

View File

@ -23,7 +23,7 @@ RSpec.shared_context "Homebrew-Cask" do
begin begin
HOMEBREW_CASK_DIRS.values.each(&:mkpath) HOMEBREW_CASK_DIRS.values.each(&:mkpath)
[Hbc::Config.global.binarydir].each(&:mkpath) Hbc::Config.global.binarydir.mkpath
Tap.default_cask_tap.tap do |tap| Tap.default_cask_tap.tap do |tap|
FileUtils.mkdir_p tap.path.dirname FileUtils.mkdir_p tap.path.dirname