Add spec for FormulaInstaller#audit_installed.
This commit is contained in:
parent
7a991985a4
commit
e5aaf36f7d
@ -150,4 +150,15 @@ describe FormulaInstaller do
|
|||||||
temporary_install(Failball.new)
|
temporary_install(Failball.new)
|
||||||
}.to raise_error(RuntimeError)
|
}.to raise_error(RuntimeError)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#caveats" do
|
||||||
|
subject(:formula_installer) { described_class.new(Testball.new) }
|
||||||
|
|
||||||
|
it "shows audit problems if HOMEBREW_DEVELOPER is set" do
|
||||||
|
ENV["HOMEBREW_DEVELOPER"] = "1"
|
||||||
|
formula_installer.install
|
||||||
|
expect(formula_installer).to receive(:audit_installed).and_call_original
|
||||||
|
formula_installer.caveats
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user