aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-11-01 21:51:12 -0700
committerAndre Arko <andre@arko.net>2012-11-01 21:51:12 -0700
commitab055f001b77615386429d58b981f11e9162470f (patch)
tree4c3cee466cac86cffb7a58f4bfb7234c88f8b3a9 /spec/runtime
parent3d15318f19540797f2eff51899fda124974792cf (diff)
downloadbundler-ab055f001b77615386429d58b981f11e9162470f.tar.gz
suppress err while testing local override errors
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/setup_spec.rb8
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