diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-23 08:45:19 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-23 10:17:41 +0900 |
commit | 339227363ce0cf967fa17efa4489d823932ddabd (patch) | |
tree | 576482ce00d03439f2dbf4714a6f309293884c2f /spec/bundler/commands/exec_spec.rb | |
parent | 733ed1e18498f97250b788f169c37b170e0cf2b6 (diff) |
Merge RubyGems 3.2.3 and Bundler 2.2.3
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3982
Diffstat (limited to 'spec/bundler/commands/exec_spec.rb')
-rw-r--r-- | spec/bundler/commands/exec_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb index 85f8ceef62..1449bb642e 100644 --- a/spec/bundler/commands/exec_spec.rb +++ b/spec/bundler/commands/exec_spec.rb @@ -67,6 +67,32 @@ RSpec.describe "bundle exec" do expect(out).to eq(Gem::VERSION) end + it "works when exec'ing back to bundler with a lockfile that doesn't include the current platform" do + install_gemfile <<-G + gem "rack", "0.9.1" + G + + # simulate lockfile generated with old version not including specific platform + lockfile <<-L + GEM + specs: + rack (0.9.1) + + PLATFORMS + RUBY + + DEPENDENCIES + rack (= 0.9.1) + + BUNDLED WITH + 2.1.4 + L + + bundle "exec bundle cache", :env => { "BUNDLER_VERSION" => Bundler::VERSION } + + expect(out).to include("Updating files in vendor/cache") + end + it "respects custom process title when loading through ruby" do skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform? |