diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/test_case.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index cd74ec614c..a63c99fd8e 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -356,7 +356,12 @@ 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 @@ -476,10 +481,6 @@ 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 |