summaryrefslogtreecommitdiff
path: root/lib/rubygems/test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/test_case.rb')
-rw-r--r--lib/rubygems/test_case.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index fef9540264..2c1b08c514 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -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