Fix tests

This commit is contained in:
Rylan Polster 2021-10-21 19:08:13 -04:00
parent e24703e58d
commit 9ca0f68bf7
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -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 }