diff options
-rw-r--r-- | spec/commands/outdated_spec.rb | 5 |
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 |