summaryrefslogtreecommitdiff
path: root/spec/bundler/install
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-07 15:28:16 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commit5454415750fe3e7dd3b4a5e55f128c4393657eaf (patch)
tree0fe3696a1b2e85531806e778632c602e2c1dd307 /spec/bundler/install
parent9939f4ad43f631d497e5e0f2b9b5dba3877d7f98 (diff)
[rubygems/rubygems] Fix spec to test the right thing on bundler 3
Bundler 3 installs by default to `.bundle`. That means that, because the `bar` gem was not previously available at this location but as a system gem, the initial `bundle install` was silently failing. As a consequence, the spec was not testing the exact scenario it meant to test. https://github.com/rubygems/rubygems/commit/202399521c
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler/install')
-rw-r--r--spec/bundler/install/gemfile/path_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/install/gemfile/path_spec.rb b/spec/bundler/install/gemfile/path_spec.rb
index 2625ab3e02..44a61ed714 100644
--- a/spec/bundler/install/gemfile/path_spec.rb
+++ b/spec/bundler/install/gemfile/path_spec.rb
@@ -610,7 +610,7 @@ RSpec.describe "bundle install with explicit source paths" do
it "switches the source when the gem existed in rubygems and the path was already being used for another gem" do
build_lib "foo", "1.0", :path => lib_path("foo")
- build_gem "bar", "1.0", :to_system => true do |s|
+ build_gem "bar", "1.0", :to_bundle => true do |s|
s.write "lib/bar.rb", "raise 'fail'"
end