mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
05c29680e5
* lib/rubygems/test_case.rb (setup, teardown): fix environment variable change leaks. * test/cgi/update_env.rb: ditto. * test/rake/test_rake_application_options.rb (setup, teardown): ditto. * test/rake/test_rake_file_utils.rb (setup, teardown): ditto. * test/rubygems/test_gem_request.rb (setup): add https_proxy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8 lines
170 B
Ruby
8 lines
170 B
Ruby
module UpdateEnv
|
|
def update_env(environ)
|
|
environ.each do |key, val|
|
|
@environ[key] = ENV[key] unless @environ.key?(key)
|
|
ENV[key] = val
|
|
end
|
|
end
|
|
end
|