From 8eaa1833064cf873246ced4d0287a73484bef9d8 Mon Sep 17 00:00:00 2001 From: joyicecloud Date: Fri, 13 Sep 2013 16:43:25 -0700 Subject: 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 --- spec/commands/outdated_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1