1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
David Rodríguez 2020-06-07 15:28:16 +02:00 committed by Hiroshi SHIBATA
parent 9939f4ad43
commit 5454415750
Notes: git 2020-06-18 19:15:20 +09:00

View file

@ -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