summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 16:41:52 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-16 08:43:47 +0200
commit7985bb8e92b0313ce6add234a2e23450d77b8a32 (patch)
tree288e9c053cce3ec21af9f75ad44b9d517a3acb08
parent9437568ab4f4bed00a3f898057f280f99d128dd5 (diff)
downloadbundler-7985bb8e92b0313ce6add234a2e23450d77b8a32.tar.gz
Use path helpers to find bundle bin
-rw-r--r--spec/bundler/shared_helpers_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb
index 69c21e5e38..0340cb7bae 100644
--- a/spec/bundler/shared_helpers_spec.rb
+++ b/spec/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