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:
parent
55831647fb
commit
3e83fbddfa
1 changed files with 1 additions and 0 deletions
|
@ -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")')
|
||||
|
|
Loading…
Add table
Reference in a new issue