diff options
author | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2019-07-13 08:20:12 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:58 +0900 |
commit | 432285c0040d547c24294611725edddb78560ac2 (patch) | |
tree | 9c2537c44d89c620b4d0c9ea39dd7f897f89b18b /spec | |
parent | 24062bd323ec9c5311bbf2c5f8f2822f15a38c62 (diff) | |
download | ruby-432285c0040d547c24294611725edddb78560ac2.tar.gz |
[bundler/bundler] fix nested bundle exec's when bundler is a default gem
https://github.com/bundler/bundler/commit/537c0ab712
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/bundler/shared_helpers_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/bundler/bundler/shared_helpers_spec.rb b/spec/bundler/bundler/shared_helpers_spec.rb index 3b30a1f49f..c6e3487494 100644 --- a/spec/bundler/bundler/shared_helpers_spec.rb +++ b/spec/bundler/bundler/shared_helpers_spec.rb @@ -402,8 +402,10 @@ 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" - expect(ENV["BUNDLE_BIN_PATH"]).to eq(File.expand_path(bundle_exe, __FILE__)) + bundle_exe = ruby_core? ? "../../../bin/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 end end |