diff options
author | Andre Arko <andre@arko.net> | 2012-11-01 21:51:12 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-11-01 21:51:12 -0700 |
commit | ab055f001b77615386429d58b981f11e9162470f (patch) | |
tree | 4c3cee466cac86cffb7a58f4bfb7234c88f8b3a9 /spec/runtime | |
parent | 3d15318f19540797f2eff51899fda124974792cf (diff) | |
download | bundler-ab055f001b77615386429d58b981f11e9162470f.tar.gz |
suppress err while testing local override errors
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/setup_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 2c96343f..a7e5707f 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -390,7 +390,7 @@ describe "Bundler.setup" do expect(out).to match(/at #{lib_path('local-rack')}/) FileUtils.rm_rf(lib_path('local-rack')) - run "require 'rack'" + run "require 'rack'", :expect_err => true expect(err).to match(/Cannot use local override for rack-0.8 because #{Regexp.escape(lib_path('local-rack').to_s)} does not exist/) end @@ -413,7 +413,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path('rack-0.8')}" G - run "require 'rack'" + run "require 'rack'", :expect_err => true expect(err).to match(/because :branch is not specified in Gemfile/) end @@ -436,7 +436,7 @@ describe "Bundler.setup" do gem "rack", :git => "#{lib_path('rack-0.8')}", :branch => "changed" G - run "require 'rack'" + run "require 'rack'", :expect_err => true expect(err).to match(/is using branch master but Gemfile specifies changed/) end @@ -456,7 +456,7 @@ describe "Bundler.setup" do G bundle %|config local.rack #{lib_path('local-rack')}| - run "require 'rack'" + run "require 'rack'", :expect_err => true expect(err).to match(/is using branch master but Gemfile specifies nonexistant/) end end |