mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown""
This reverts commit ac2c07e983
.
This commit is contained in:
parent
3a2628025e
commit
c3ecd1cbd3
Notes:
git
2020-06-15 19:48:50 +09:00
11 changed files with 32 additions and 9 deletions
|
@ -356,12 +356,7 @@ class Gem::TestCase < Minitest::Test
|
|||
Dir.chdir @tempdir
|
||||
|
||||
ENV['HOME'] = @userhome
|
||||
FileUtils.mkdir_p File.join(@userhome, ".gem")
|
||||
File.write File.join(@userhome, ".gemrc"), "--- {}"
|
||||
|
||||
Gem.instance_variable_set :@user_home, nil
|
||||
Gem.instance_variable_set :@cache_home, nil
|
||||
Gem.instance_variable_set :@data_home, nil
|
||||
Gem.instance_variable_set :@gemdeps, nil
|
||||
Gem.instance_variable_set :@env_requirements_by_name, nil
|
||||
Gem.send :remove_instance_variable, :@ruby_version if
|
||||
|
@ -482,6 +477,10 @@ class Gem::TestCase < Minitest::Test
|
|||
File.chmod 0600, @temp_cred
|
||||
end
|
||||
|
||||
def credential_teardown
|
||||
FileUtils.rm_rf @temp_cred
|
||||
end
|
||||
|
||||
def common_installer_setup
|
||||
common_installer_teardown
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue