diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-24 23:56:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-25 02:35:57 +0900 |
commit | c6020ba277b8e666b38e25dab65acdcbd1c2121c (patch) | |
tree | c3d6b45e6bc5b049543442a8f9f39e4b50cca2a2 | |
parent | 21598b0cc2aeac3d985e5512e13322fd854d3341 (diff) | |
download | ruby-c6020ba277b8e666b38e25dab65acdcbd1c2121c.tar.gz |
Clear cached XDG path names
-rw-r--r-- | lib/rubygems/test_case.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index d028254465..960fe9efe0 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -371,6 +371,8 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni File.chmod 0600, temp_cred 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 |