summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoyicecloud <joyicecloud@gmail.com>2013-09-13 16:43:25 -0700
committerjoyicecloud <joyicecloud@gmail.com>2013-09-16 14:57:54 -0700
commit8eaa1833064cf873246ced4d0287a73484bef9d8 (patch)
treea5f613c6f182b2fff1f7350be8e1a207bc7f7875
parent7bd82641de44de6601a03ae455ce9277bcdf04b0 (diff)
downloadbundler-8eaa1833064cf873246ced4d0287a73484bef9d8.tar.gz
Add rspec test when run bundle outdated with invalid gem name
The test expects the status code to return a non-zero exit code. https://github.com/bundler/bundler-features/issues/6
-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