Fix tests
This commit is contained in:
parent
e24703e58d
commit
9ca0f68bf7
@ -64,7 +64,16 @@ module Homebrew
|
|||||||
f.write text
|
f.write text
|
||||||
end
|
end
|
||||||
|
|
||||||
described_class.new(Formulary.factory(path), options)
|
formula = Formulary.factory(path)
|
||||||
|
|
||||||
|
if options.key? :tap_audit_exceptions
|
||||||
|
tap = Tap.fetch("test/tap")
|
||||||
|
allow(tap).to receive(:audit_exceptions).and_return(options[:tap_audit_exceptions])
|
||||||
|
allow(formula).to receive(:tap).and_return(tap)
|
||||||
|
options.delete :tap_audit_exceptions
|
||||||
|
end
|
||||||
|
|
||||||
|
described_class.new(formula, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:dir) { mktmpdir }
|
let(:dir) { mktmpdir }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user