Skip to content

Commit 756a71c

Browse files
committed
bundle/commands/install_spec: fix flaky test.
Need to reset this so doubles don't escape.
1 parent 338dbb9 commit 756a71c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Library/Homebrew/test/bundle/commands/install_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require "bundle"
44
require "bundle/commands/install"
5+
require "bundle/cask_dumper"
56
require "bundle/skipper"
67

78
RSpec.describe Homebrew::Bundle::Commands::Install do
@@ -17,6 +18,9 @@
1718
end
1819

1920
context "when a Brewfile is found", :no_api do
21+
before do
22+
Homebrew::Bundle::CaskDumper.reset!
23+
end
2024
let(:brewfile_contents) do
2125
<<~EOS
2226
tap 'phinze/cask'

0 commit comments

Comments
 (0)