diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:40:33 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:49 +0900 |
commit | 63575409458f6b7b1bdaf038a562bc3f011e231e (patch) | |
tree | 977c2ba002440b38c8e68c6cbcd3aa11760229db | |
parent | 7551117c70cdc33f4dd8a72a1a9151f23c73f902 (diff) |
[bundler/bundler] Fix bundle bin location in core repo
https://github.com/bundler/bundler/commit/9437568ab4
-rw-r--r-- | lib/bundler/shared_helpers.rb | 2 | ||||
-rw-r--r-- | spec/bundler/bundler/shared_helpers_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index af1836009f..a9bfd57fae 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -304,7 +304,7 @@ module Bundler exe_file = File.expand_path("../../../exe/bundle", __FILE__) # for Ruby core repository testing - exe_file = File.expand_path("../../../bin/bundle", __FILE__) unless File.exist?(exe_file) + exe_file = File.expand_path("../../../libexec/bundle", __FILE__) unless File.exist?(exe_file) # bundler is a default gem, exe path is separate exe_file = Bundler.rubygems.bin_path("bundler", "bundle", VERSION) unless File.exist?(exe_file) diff --git a/spec/bundler/bundler/shared_helpers_spec.rb b/spec/bundler/bundler/shared_helpers_spec.rb index c5ec939978..69c21e5e38 100644 --- a/spec/bundler/bundler/shared_helpers_spec.rb +++ b/spec/bundler/bundler/shared_helpers_spec.rb @@ -394,7 +394,7 @@ RSpec.describe Bundler::SharedHelpers do it "sets BUNDLE_BIN_PATH to the bundle executable file" do subject.set_bundle_environment - bundle_exe = ruby_core? ? "../../../../bin/bundle" : "../../../exe/bundle" + bundle_exe = ruby_core? ? "../../../../libexec/bundle" : "../../../exe/bundle" bin_path = ENV["BUNDLE_BIN_PATH"] expect(bin_path).to eq(File.expand_path(bundle_exe, __FILE__)) expect(File.exist?(bin_path)).to be true |