From 09e7a0c4a4fba18e3308e4f8cb4b8b5b52b41d20 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 23 Jun 2021 18:56:10 +0900 Subject: [PATCH] Dispose the global rubygems configuration wholely --- test/rdoc/test_rdoc_rubygems_hook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb index f5ed579cbb..f5177e4a8c 100644 --- a/test/rdoc/test_rdoc_rubygems_hook.rb +++ b/test/rdoc/test_rdoc_rubygems_hook.rb @@ -28,7 +28,7 @@ class TestRDocRubygemsHook < Test::Unit::TestCase ].map {|e| [e, ENV.delete(e)]}.to_h ENV["HOME"] = @tempdir - Gem.configuration[:rdoc] = nil + Gem.configuration = nil @a.instance_variable_set(:@doc_dir, File.join(@tempdir, "doc")) @a.instance_variable_set(:@gem_dir, File.join(@tempdir, "a-2"))