We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77014bb + 0f8fb4f commit 4d10767Copy full SHA for 4d10767
2 files changed
lib/bundler/audit/cli.rb
@@ -156,6 +156,10 @@ def print_advisory(gem, advisory)
156
say
157
end
158
159
+ def self.exit_on_failure?
160
+ true
161
+ end
162
+
163
164
165
spec/cli_spec.rb
@@ -2,6 +2,19 @@
2
require 'bundler/audit/cli'
3
4
describe Bundler::Audit::CLI do
5
+ describe "#start" do
6
+ context "with wrong arguments" do
7
+ it "exits with error status code" do
8
+ expect {
9
+ described_class.start ["check", "--ignore CVE-2015-9284"]
10
+ }.to raise_error(SystemExit) do |error|
11
+ expect(error.success?).to eq(false)
12
+ expect(error.status).to eq(1)
13
14
15
16
17
18
describe "#update" do
19
context "not --quiet (the default)" do
20
context "when update succeeds" do
0 commit comments