summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <me@colby.fyi>2018-12-28 21:44:25 +1100
committerColby Swandale <me@colby.fyi>2018-12-28 21:44:34 +1100
commit21ac802b8c54718687a8682c396fc31e5a215ebc (patch)
treeb45b8d22278db65675b0fb3384a2f96d31b01f44
parentdcfc2750a09534d82494e0451cefe6382d2cbc98 (diff)
downloadbundler-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.rb2
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) || {}