mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Clear Tap
cache before each example.
This commit is contained in:
parent
f92e3086ac
commit
1f56314365
@ -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?
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user