diff options
author | Xavier Shay <hello@xaviershay.com> | 2013-09-18 18:04:36 -0700 |
---|---|---|
committer | Xavier Shay <hello@xaviershay.com> | 2013-09-18 18:04:36 -0700 |
commit | 17d1b5f9af8a77e7116595c4ca386233e8bbeb23 (patch) | |
tree | a5f613c6f182b2fff1f7350be8e1a207bc7f7875 | |
parent | 7bd82641de44de6601a03ae455ce9277bcdf04b0 (diff) | |
parent | 8eaa1833064cf873246ced4d0287a73484bef9d8 (diff) | |
download | bundler-17d1b5f9af8a77e7116595c4ca386233e8bbeb23.tar.gz |
Merge pull request #2640 from joyicecloud/bundle-outdate-non-zero
Add rspec test when run bundle outdated with invalid gem name
-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 |