diff options
Diffstat (limited to 'spec/bundler/install')
-rw-r--r-- | spec/bundler/install/bundler_spec.rb | 6 | ||||
-rw-r--r-- | spec/bundler/install/gems/flex_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/yanked_spec.rb | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/install/bundler_spec.rb b/spec/bundler/install/bundler_spec.rb index 85b1fdcfbb..818c6b1ad9 100644 --- a/spec/bundler/install/bundler_spec.rb +++ b/spec/bundler/install/bundler_spec.rb @@ -30,6 +30,8 @@ RSpec.describe "bundle install" do end it "causes a conflict if explicitly requesting a different version" do + bundle "config set force_ruby_platform true" + install_gemfile <<-G source "#{file_uri_for(gem_repo2)}" gem "rails", "3.0" @@ -89,6 +91,8 @@ RSpec.describe "bundle install" do end it "causes a conflict if child dependencies conflict" do + bundle "config set force_ruby_platform true" + install_gemfile <<-G source "#{file_uri_for(gem_repo2)}" gem "activemerchant" @@ -108,6 +112,8 @@ RSpec.describe "bundle install" do end it "causes a conflict if a child dependency conflicts with the Gemfile" do + bundle "config set force_ruby_platform true" + install_gemfile <<-G source "#{file_uri_for(gem_repo2)}" gem "rails_fail" diff --git a/spec/bundler/install/gems/flex_spec.rb b/spec/bundler/install/gems/flex_spec.rb index 65116addb5..865bc7b72a 100644 --- a/spec/bundler/install/gems/flex_spec.rb +++ b/spec/bundler/install/gems/flex_spec.rb @@ -192,6 +192,8 @@ RSpec.describe "bundle flex_install" do end it "suggests bundle update when the Gemfile requires different versions than the lock" do + bundle "config set force_ruby_platform true" + nice_error = <<-E.strip.gsub(/^ {8}/, "") Bundler could not find compatible versions for gem "rack": In snapshot (Gemfile.lock): diff --git a/spec/bundler/install/yanked_spec.rb b/spec/bundler/install/yanked_spec.rb index b8e54dc807..80729b3f5b 100644 --- a/spec/bundler/install/yanked_spec.rb +++ b/spec/bundler/install/yanked_spec.rb @@ -31,6 +31,8 @@ RSpec.context "when installing a bundle that includes yanked gems" do end it "throws the original error when only the Gemfile specifies a gem version that doesn't exist" do + bundle "config set force_ruby_platform true" + install_gemfile <<-G source "#{file_uri_for(gem_repo4)}" gem "foo", "10.0.0" |