diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-09 09:27:41 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-17 20:34:01 -0300 |
commit | 5914154fab828f762c815b7d72cbdc2d4694bd1f (patch) | |
tree | ab79ad749a737cdc25782e17dcd0db89c0aa527e | |
parent | 8b35686ed50570833abaf91fb86921b01fd554e6 (diff) | |
download | bundler-5914154fab828f762c815b7d72cbdc2d4694bd1f.tar.gz |
Modify env only in subprocess
-rw-r--r-- | spec/runtime/setup_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 3d8ab4e0be..5a632f8391 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -884,9 +884,7 @@ end it "should successfully require 'bundler/setup'" do install_gemfile "" - ENV["GEM_PATH"] = symlinked_gem_home.path - - ruby <<-R, :no_lib => true + ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home.path }, :no_lib => true puts (require 'bundler/setup') R |