Adjust audit spec.

This commit is contained in:
Markus Reiter 2021-03-31 06:25:33 +02:00 committed by BrewTestBot
parent 02b2abaa67
commit ffba81f677
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F

View File

@ -795,7 +795,17 @@ describe Cask::Audit, :cask do
end
end
context "when doing the audit" do
context "when doing an offline audit" do
let(:online) { false }
it "does not evaluate the block" do
expect(run).not_to pass
end
end
context "when doing and online audit" do
let(:online) { true }
it "evaluates the block" do
expect(run).to fail_with(/Boom/)
end