summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-05 12:56:29 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-10 17:47:39 +0100
commitbcc311f522248842798a17a412076667ebda12ee (patch)
tree3803408eb54d8131c5be22aef431247f47589044
parent6587caac774d5914bca93475edeaeb5b36fbea83 (diff)
downloadbundler-bcc311f522248842798a17a412076667ebda12ee.tar.gz
Properly set path for subprocesses
-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 e556292774..8bfa801209 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -91,7 +91,7 @@ module Spec
end
env = options.delete(:env) || {}
- env["PATH"].gsub!("#{Path.root}/exe", "") if env["PATH"] && system_bundler
+ env["PATH"] = ENV["PATH"].gsub("#{Path.root}/exe", "") if system_bundler
requires = options.delete(:requires) || []
requires << "support/hax"