1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Dispose the global rubygems configuration wholely

This commit is contained in:
Nobuyoshi Nakada 2021-06-23 18:56:10 +09:00
parent ddb8739634
commit 09e7a0c4a4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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"))