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

[bundler/bundler] Fix installation of system bundler

Previously it was being installed to the :bundle_path
(`/tmp/bundled_app/.bundle`), but the `bundle` helper uses the
`system_gem_path("bin/bundle")`. That means the first `bundle install`in
the spec was actually failing, but not affecting the test status because
of not being called as `bundle!`.

https://github.com/bundler/bundler/commit/ad75f75539
This commit is contained in:
David Rodríguez 2019-08-07 20:35:28 +02:00 committed by SHIBATA Hiroshi
parent 6c6c4c7388
commit 7ff0b4fec4
Notes: git 2019-08-31 04:40:14 +09:00

View file

@ -840,10 +840,10 @@ __FILE__: #{path.to_s.inspect}
end
context "nested bundle exec" do
let(:system_gems_to_install) { super() << :bundler }
context "when bundle in a local path" do
before do
system_gems :bundler
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack"
@ -853,7 +853,6 @@ __FILE__: #{path.to_s.inspect}
end
it "correctly shells out", :ruby_repo do
system_gems :bundler
file = bundled_app("file_that_bundle_execs.rb")
create_file(file, <<-RB)
#!#{Gem.ruby}