diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-06-28 19:25:33 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2021-07-07 10:03:15 +0900 |
commit | 865221f0ba69f07f700e06b2d2f0a859a01dd233 (patch) | |
tree | 2bd6c79b1ada4af36c62a872e7e38d2f7129e7c1 /spec/bundler/commands | |
parent | a50de0adfff8166ea18570edafafb0ba501ff2fa (diff) |
Merge RubyGems-3.2.21 and Bundler-2.2.21
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r-- | spec/bundler/commands/cache_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/bundler/commands/cache_spec.rb b/spec/bundler/commands/cache_spec.rb index 3bae384620..9bb85c6587 100644 --- a/spec/bundler/commands/cache_spec.rb +++ b/spec/bundler/commands/cache_spec.rb @@ -362,6 +362,24 @@ RSpec.describe "bundle install with gem sources" do expect(the_bundle).to include_gems "rack 1.0.0" end + it "does not hit the remote at all when cache_all_platforms configured" do + build_repo2 + install_gemfile <<-G + source "#{file_uri_for(gem_repo2)}" + gem "rack" + G + + bundle :cache + simulate_new_machine + FileUtils.rm_rf gem_repo2 + + bundle "config set --local cache_all_platforms true" + bundle "config set --local path vendor/bundle" + bundle "install --local" + expect(out).not_to include("Fetching gem metadata") + expect(the_bundle).to include_gems "rack 1.0.0" + end + it "does not reinstall already-installed gems" do install_gemfile <<-G source "#{file_uri_for(gem_repo1)}" |