summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-07 20:35:28 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-07 20:35:28 +0200
commitad75f75539ec5f217da38171a2a84d7ac32e2784 (patch)
tree6fdb0ae9c9dbc2a971334bd730c8aeb1420a8cf1
parent6013c93e8151961d15bad6d2d53aeb8b1e353af6 (diff)
downloadbundler-ad75f75539ec5f217da38171a2a84d7ac32e2784.tar.gz
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!`.
-rw-r--r--spec/commands/exec_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index adae9d53e9..79caa823ed 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/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}