1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Add a comment to explain the initial reset

https://github.com/bundler/bundler/commit/6d0a8f4128
This commit is contained in:
David Rodríguez 2019-07-23 08:16:17 +02:00 committed by Hiroshi SHIBATA
parent 55831647fb
commit 3e83fbddfa
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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")')