Skip to content

Commit

Permalink
Adjust audit spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Apr 1, 2021
1 parent d2a3944 commit c07205c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Library/Homebrew/test/cask/audit_spec.rb
Expand Up @@ -795,7 +795,17 @@ def tmp_cask(name, text)
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
Expand Down

0 comments on commit c07205c

Please sign in to comment.