diff options
author | David RodrÃguez <[email protected]> | 2020-06-06 18:27:42 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-06-18 19:14:15 +0900 |
commit | 8c686475c85d4019467d119499593afdf0974edc (patch) | |
tree | 2c513c0bacdfc155298e1ac6bfdae168fd8c1ee0 /spec/bundler/cache/git_spec.rb | |
parent | 94fc709dd19ec6c6396982fef06e9b7d3ce8ae48 (diff) |
[rubygems/rubygems] Migrate some specs to use "the new way"
The commands these specs run were throwing warnings in bundler 2, and
failing on bundler 3, effectively testing a different scenario to what
they were supposed to.
https://github.com/rubygems/rubygems/commit/97ac1ced49
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler/cache/git_spec.rb')
-rw-r--r-- | spec/bundler/cache/git_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/bundler/cache/git_spec.rb b/spec/bundler/cache/git_spec.rb index ecdc97f837..e29f16f012 100644 --- a/spec/bundler/cache/git_spec.rb +++ b/spec/bundler/cache/git_spec.rb @@ -31,7 +31,7 @@ RSpec.describe "bundle cache with git" do expect(the_bundle).to include_gems "foo 1.0" end - it "copies repository to vendor cache and uses it even when installed with bundle --path" do + it "copies repository to vendor cache and uses it even when configured with `path`" do git = build_git "foo" ref = git.ref_for("master", 11) @@ -39,7 +39,8 @@ RSpec.describe "bundle cache with git" do gem "foo", :git => '#{lib_path("foo-1.0")}' G - bundle "install --path vendor/bundle" + bundle "config set --local path vendor/bundle" + bundle "install" bundle "config set cache_all true" bundle :cache |