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 0fd3b8e commit fd80dd9Copy full SHA for fd80dd9
Library/Homebrew/test/utils/git_spec.rb
@@ -186,7 +186,10 @@
186
unless ENV["HOMEBREW_TEST_GENERIC_OS"]
187
it "installs git" do
188
expect(described_class).to receive(:available?).and_return(false)
189
- allow_any_instance_of(Formula).to receive(:ensure_installed!)
+ allow(CoreTap.instance).to receive(:installed?).and_return(true)
190
+ formula_double = instance_double(Formula)
191
+ allow(Formula).to receive(:[]).with("git").and_return(formula_double)
192
+ allow(formula_double).to receive(:ensure_installed!).and_return(formula_double)
193
expect(described_class).to receive(:available?).and_return(true)
194
195
described_class.ensure_installed!
0 commit comments