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

Clear rdoc options in the global rubygems configuration

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

View file

@ -28,6 +28,8 @@ class TestRDocRubygemsHook < Test::Unit::TestCase
].map {|e| [e, ENV.delete(e)]}.to_h
ENV["HOME"] = @tempdir
Gem.configuration[:rdoc] = nil
@a.instance_variable_set(:@doc_dir, File.join(@tempdir, "doc"))
@a.instance_variable_set(:@gem_dir, File.join(@tempdir, "a-2"))
@a.instance_variable_set(:@full_gem_path, File.join(@tempdir, "a-2"))