We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59ce9d commit e0c6beaCopy full SHA for e0c6bea
Library/Homebrew/test/bundle/cask_installer_spec.rb
@@ -92,7 +92,8 @@
92
93
context "when cask is not installed" do
94
before do
95
- allow(described_class).to receive(:installed_casks).and_return([])
+ described_class.reset!
96
+ allow(Homebrew::Bundle::CaskDumper).to receive(:cask_names).and_return([])
97
end
98
99
it "installs cask" do
@@ -101,6 +102,9 @@
101
102
.and_return(true)
103
expect(described_class.preinstall!("google-chrome")).to be(true)
104
expect(described_class.install!("google-chrome")).to be(true)
105
+
106
+ # Does not mutate CaskDumper's list of installed casks
107
+ expect(Homebrew::Bundle::CaskDumper.cask_names).to eq([])
108
109
110
it "installs cask with arguments" do
0 commit comments