fix env leaks

* 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
This commit is contained in:
nobu 2015-03-12 14:57:33 +00:00
parent 31eb193883
commit 05c29680e5
13 changed files with 119 additions and 93 deletions

View file

@ -3,10 +3,15 @@ require 'fileutils'
require 'stringio'
class TestRakeFileUtils < Rake::TestCase
def setup
super
@rake_test_sh = ENV['RAKE_TEST_SH']
end
def teardown
FileUtils::LN_SUPPORTED[0] = true
RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
ENV['RAKE_TEST_SH'] = @rake_test_sh
super
end