summaryrefslogtreecommitdiff
path: root/spec/bundler/other/platform_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/other/platform_spec.rb')
-rw-r--r--spec/bundler/other/platform_spec.rb98
1 files changed, 49 insertions, 49 deletions
diff --git a/spec/bundler/other/platform_spec.rb b/spec/bundler/other/platform_spec.rb
index 565706c30c..213145d2a6 100644
--- a/spec/bundler/other/platform_spec.rb
+++ b/spec/bundler/other/platform_spec.rb
@@ -168,7 +168,7 @@ G
gem "foo"
G
- bundle "platform"
+ bundle "platform", :raise_on_error => false
expect(exitstatus).not_to eq(0) if exitstatus
end
@@ -181,7 +181,7 @@ G
gem "foo"
G
- bundle "platform"
+ bundle "platform", :raise_on_error => false
expect(exitstatus).not_to eq(0) if exitstatus
end
@@ -194,7 +194,7 @@ G
gem "foo"
G
- bundle "platform"
+ bundle "platform", :raise_on_error => false
expect(exitstatus).not_to eq(0) if exitstatus
end
@@ -324,7 +324,7 @@ G
end
it "doesn't install when the ruby version doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@@ -336,7 +336,7 @@ G
end
it "doesn't install when engine doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@@ -348,7 +348,7 @@ G
end
it "doesn't install when engine version doesn't match", :jruby do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@@ -360,7 +360,7 @@ G
end
it "doesn't install when patchlevel doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@@ -422,7 +422,7 @@ G
#{ruby_version_incorrect}
G
- bundle :check
+ bundle :check, :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -439,7 +439,7 @@ G
#{engine_incorrect}
G
- bundle :check
+ bundle :check, :raise_on_error => false
should_be_engine_incorrect
end
@@ -456,7 +456,7 @@ G
#{engine_version_incorrect}
G
- bundle :check
+ bundle :check, :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -473,7 +473,7 @@ G
#{patchlevel_incorrect}
G
- bundle :check
+ bundle :check, :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -533,7 +533,7 @@ G
build_gem "activesupport", "3.0"
end
- bundle :update, :all => true
+ bundle :update, :all => true, :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -549,7 +549,7 @@ G
build_gem "activesupport", "3.0"
end
- bundle :update, :all => true
+ bundle :update, :all => true, :raise_on_error => false
should_be_engine_incorrect
end
@@ -565,7 +565,7 @@ G
build_gem "activesupport", "3.0"
end
- bundle :update, :all => true
+ bundle :update, :all => true, :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -580,7 +580,7 @@ G
build_gem "activesupport", "3.0"
end
- bundle :update, :all => true
+ bundle :update, :all => true, :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -625,7 +625,7 @@ G
#{ruby_version_incorrect}
G
- bundle "show rails"
+ bundle "show rails", :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -637,7 +637,7 @@ G
#{engine_incorrect}
G
- bundle "show rails"
+ bundle "show rails", :raise_on_error => false
should_be_engine_incorrect
end
@@ -649,7 +649,7 @@ G
#{engine_version_incorrect}
G
- bundle "show rails"
+ bundle "show rails", :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -664,7 +664,7 @@ G
build_gem "activesupport", "3.0"
end
- bundle "show rails"
+ bundle "show rails", :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -707,7 +707,7 @@ G
#{ruby_version_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -718,7 +718,7 @@ G
#{engine_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_engine_incorrect
end
@@ -729,7 +729,7 @@ G
#{engine_version_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -741,7 +741,7 @@ G
#{patchlevel_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -784,7 +784,7 @@ G
#{ruby_version_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -795,7 +795,7 @@ G
#{engine_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_engine_incorrect
end
@@ -806,7 +806,7 @@ G
#{engine_version_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -818,7 +818,7 @@ G
#{patchlevel_incorrect}
G
- bundle :cache
+ bundle :cache, :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -859,7 +859,7 @@ G
#{ruby_version_incorrect}
G
- bundle "exec rackup"
+ bundle "exec rackup", :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -870,7 +870,7 @@ G
#{engine_incorrect}
G
- bundle "exec rackup"
+ bundle "exec rackup", :raise_on_error => false
should_be_engine_incorrect
end
@@ -893,7 +893,7 @@ G
#{patchlevel_incorrect}
G
- bundle "exec rackup"
+ bundle "exec rackup", :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -952,7 +952,7 @@ G
#{ruby_version_incorrect}
G
- bundle "console"
+ bundle "console", :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -966,7 +966,7 @@ G
#{engine_incorrect}
G
- bundle "console"
+ bundle "console", :raise_on_error => false
should_be_engine_incorrect
end
@@ -980,7 +980,7 @@ G
#{engine_version_incorrect}
G
- bundle "console"
+ bundle "console", :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -994,7 +994,7 @@ G
#{patchlevel_incorrect}
G
- bundle "console"
+ bundle "console", :raise_on_error => false
should_be_patchlevel_incorrect
end
end
@@ -1041,7 +1041,7 @@ G
end
it "fails when ruby version doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "yard"
gem "rack"
@@ -1051,14 +1051,14 @@ G
FileUtils.rm(bundled_app_lock)
- ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }
+ ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }, :raise_on_error => false
expect(bundled_app_lock).not_to exist
should_be_ruby_version_incorrect
end
it "fails when engine doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "yard"
gem "rack"
@@ -1068,14 +1068,14 @@ G
FileUtils.rm(bundled_app_lock)
- ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }
+ ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }, :raise_on_error => false
expect(bundled_app_lock).not_to exist
should_be_engine_incorrect
end
it "fails when engine version doesn't match", :jruby do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "yard"
gem "rack"
@@ -1085,14 +1085,14 @@ G
FileUtils.rm(bundled_app_lock)
- ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }
+ ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }, :raise_on_error => false
expect(bundled_app_lock).not_to exist
should_be_engine_version_incorrect
end
it "fails when patchlevel doesn't match" do
- install_gemfile <<-G
+ install_gemfile <<-G, :raise_on_error => false
source "#{file_uri_for(gem_repo1)}"
gem "yard"
gem "rack"
@@ -1102,7 +1102,7 @@ G
FileUtils.rm(bundled_app_lock)
- ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }
+ ruby "require 'bundler/setup'", :env => { "BUNDLER_VERSION" => Bundler::VERSION }, :raise_on_error => false
expect(bundled_app_lock).not_to exist
should_be_patchlevel_incorrect
@@ -1136,7 +1136,7 @@ G
#{ruby_version_correct}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Current Latest Requested Groups
@@ -1162,7 +1162,7 @@ G
#{ruby_version_correct_engineless}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
expected_output = <<~TABLE.gsub("x", "\\\h").tr(".", "\.").strip
Gem Current Latest Requested Groups
@@ -1187,7 +1187,7 @@ G
#{ruby_version_incorrect}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
should_be_ruby_version_incorrect
end
@@ -1205,7 +1205,7 @@ G
#{engine_incorrect}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
should_be_engine_incorrect
end
@@ -1223,7 +1223,7 @@ G
#{engine_version_incorrect}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
should_be_engine_version_incorrect
end
@@ -1241,7 +1241,7 @@ G
#{patchlevel_incorrect}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
should_be_patchlevel_incorrect
end
@@ -1259,7 +1259,7 @@ G
#{patchlevel_fixnum}
G
- bundle "outdated"
+ bundle "outdated", :raise_on_error => false
should_be_patchlevel_fixnum
end
end