diff options
author | Colby Swandale <me@colby.fyi> | 2018-12-28 21:44:25 +1100 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2018-12-28 21:44:34 +1100 |
commit | 21ac802b8c54718687a8682c396fc31e5a215ebc (patch) | |
tree | b45b8d22278db65675b0fb3384a2f96d31b01f44 | |
parent | dcfc2750a09534d82494e0451cefe6382d2cbc98 (diff) | |
download | bundler-21ac802b8c54718687a8682c396fc31e5a215ebc.tar.gz |
set `bundle` spec helper to load the system bundler binstub directly instead of depending on the $PATH
-rw-r--r-- | spec/support/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 98a4096216..a6b9cfdc35 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -104,7 +104,7 @@ module Spec bundle_bin = options.delete("bundle_bin") || bindir.join("bundle") if system_bundler = options.delete(:system_bundler) - bundle_bin = "-S bundle" + bundle_bin = system_gem_path.join("bin/bundler") end env = options.delete(:env) || {} |