diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 13:11:33 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:59 +0900 |
commit | d7487d6c0845f89b0d640d1e22a4a10d1ffdb1a3 (patch) | |
tree | 1b9c71f1fd29bad6f19d36a4fd197ea17b3c688d /spec/bundler/install | |
parent | 9d82962af3bc1c308ae0c2530b9fb162da825da2 (diff) |
[bundler/bundler] Try make some specs platform independent
https://github.com/bundler/bundler/commit/b5900e57a4
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" |