summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/commands/outdated_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb
index f0ccd1427a..0c8de2adfe 100644
--- a/spec/commands/outdated_spec.rb
+++ b/spec/commands/outdated_spec.rb
@@ -119,5 +119,10 @@ describe "bundle outdated" do
bundle "outdated invalid_gem_name"
expect(out).to include("Could not find gem 'invalid_gem_name'.")
end
+
+ it "returns non-zero exit code" do
+ bundle "outdated invalid_gem_name", :exitstatus => true
+ expect(exitstatus).to_not be_zero
+ end
end
end