ruby-changes:60898
From: Nobuyoshi <ko1@a...>
Date: Sat, 25 Apr 2020 02:51:24 +0900 (JST)
Subject: [ruby-changes:60898] cc8f55e9e3 (master): [ruby/rdoc] HOME is preserved by RDoc::TestCase
https://git.ruby-lang.org/ruby.git/commit/?id=cc8f55e9e3 From cc8f55e9e31e8057c6b5bfd417ca4f70d41b9a33 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 25 Apr 2020 01:43:38 +0900 Subject: [ruby/rdoc] HOME is preserved by RDoc::TestCase https://github.com/ruby/rdoc/commit/6c4801d1f6 diff --git a/test/rdoc/test_rdoc_markdown.rb b/test/rdoc/test_rdoc_markdown.rb index 021d942..9c7a406 100644 --- a/test/rdoc/test_rdoc_markdown.rb +++ b/test/rdoc/test_rdoc_markdown.rb @@ -8,6 +8,8 @@ require 'rdoc/markdown' https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_markdown.rb#L8 class TestRDocMarkdown < RDoc::TestCase def setup + super + @RM = RDoc::Markup @parser = RDoc::Markdown.new diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index e623233..f79d17b 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -13,7 +13,6 @@ class TestRDocRIDriver < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_ri_driver.rb#L13 FileUtils.mkdir_p @home_ri @orig_ri = ENV['RI'] - @orig_home = ENV['HOME'] ENV['HOME'] = @tmpdir @rdoc_home = File.join ENV["HOME"], ".rdoc" FileUtils.mkdir_p @rdoc_home @@ -33,7 +32,6 @@ class TestRDocRIDriver < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_ri_driver.rb#L32 end def teardown - ENV['HOME'] = @orig_home ENV['RI'] = @orig_ri FileUtils.rm_rf @tmpdir -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/