From 7ff0b4fec4cbd763e9bb7be597b54217176a8d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 7 Aug 2019 20:35:28 +0200 Subject: [PATCH] [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 --- spec/bundler/commands/exec_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb index 3016ca928f..dde9e94ed2 100644 --- a/spec/bundler/commands/exec_spec.rb +++ b/spec/bundler/commands/exec_spec.rb @@ -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}