diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-23 18:46:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-23 18:46:53 +0900 |
commit | ddb87396349fa4699153d5c4c7569c2e0186adfc (patch) | |
tree | f30c2bd9493f7f2fb6a5b4e3cd17971875b6ee68 /test/rdoc | |
parent | 69ce9e4187589335124077029496ee293d4e9189 (diff) |
Clear rdoc options in the global rubygems configuration
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_rubygems_hook.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb index cc597ceaaa..f5ed579cbb 100644 --- a/test/rdoc/test_rdoc_rubygems_hook.rb +++ b/test/rdoc/test_rdoc_rubygems_hook.rb @@ -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")) |