diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 08:16:17 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 11:23:00 +0200 |
commit | 6d0a8f4128dbfe855a33421c85419d09d1311d01 (patch) | |
tree | 4309cacbfeb6b7b51522ef3a25ed7241d6ae825b | |
parent | 6d3b809695e579f0b64f111e023f47721cad3f30 (diff) | |
download | bundler-6d0a8f4128dbfe855a33421c85419d09d1311d01.tar.gz |
Add a comment to explain the initial resetimprove_env_backup
-rw-r--r-- | spec/runtime/with_unbundled_env_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/runtime/with_unbundled_env_spec.rb b/spec/runtime/with_unbundled_env_spec.rb index b346df6283..d5eed096c2 100644 --- a/spec/runtime/with_unbundled_env_spec.rb +++ b/spec/runtime/with_unbundled_env_spec.rb @@ -54,6 +54,7 @@ RSpec.describe "Bundler.with_env helpers" do end it "removes variables that bundler added", :ruby_repo do + # Simulate bundler has not yet been loaded ENV.replace(ENV.to_hash.delete_if {|k, _v| k.start_with?(Bundler::EnvironmentPreserver::BUNDLER_PREFIX) }) original = ruby!('puts ENV.to_a.map {|e| e.join("=") }.sort.join("\n")') |