diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:41:52 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:50 +0900 |
commit | 7af12a92c8593fffee42004a04d6886bbd863ff5 (patch) | |
tree | 90a869a361de2a7606a99b8f7a54004d0197bd44 /spec/bundler/bundler | |
parent | 63575409458f6b7b1bdaf038a562bc3f011e231e (diff) |
[bundler/bundler] Use path helpers to find bundle bin
https://github.com/bundler/bundler/commit/7985bb8e92
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r-- | spec/bundler/bundler/shared_helpers_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/bundler/bundler/shared_helpers_spec.rb b/spec/bundler/bundler/shared_helpers_spec.rb index 69c21e5e38..0340cb7bae 100644 --- a/spec/bundler/bundler/shared_helpers_spec.rb +++ b/spec/bundler/bundler/shared_helpers_spec.rb @@ -394,9 +394,8 @@ RSpec.describe Bundler::SharedHelpers do it "sets BUNDLE_BIN_PATH to the bundle executable file" do subject.set_bundle_environment - 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(bin_path).to eq(bindir.join("bundle").to_s) expect(File.exist?(bin_path)).to be true end end |