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
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
|
end
|
||||||
|
|
||||||
it "removes variables that bundler added", :ruby_repo do
|
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) })
|
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")')
|
original = ruby!('puts ENV.to_a.map {|e| e.join("=") }.sort.join("\n")')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue