Clear Tap cache before each example.

This commit is contained in:
Markus Reiter 2018-07-16 10:55:22 +02:00
parent f92e3086ac
commit 1f56314365
2 changed files with 3 additions and 1 deletions

View File

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

View File

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