summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-26 22:57:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-26 22:57:25 +0900
commitb29c68e6876976b22f64318bf390f05447e4ca01 (patch)
tree8ab77b6f4d049b6b88e6717c59a3192683360c3e /test/rdoc
parentc4ec817a7a6bc104dc1caf9018bc97a2dbfd324e (diff)
Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_ri_paths.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_ri_paths.rb b/test/rdoc/test_rdoc_ri_paths.rb
index 01ade58dad..726922daf0 100644
--- a/test/rdoc/test_rdoc_ri_paths.rb
+++ b/test/rdoc/test_rdoc_ri_paths.rb
@@ -6,6 +6,7 @@ class TestRDocRIPaths < RDoc::TestCase
def setup
super
+ @orig_env = ENV.to_hash
@orig_gem_path = Gem.path
@tempdir = File.join Dir.tmpdir, "test_rdoc_ri_paths_#{$$}"
@@ -40,6 +41,7 @@ class TestRDocRIPaths < RDoc::TestCase
Gem.use_paths(*@orig_gem_path)
Gem::Specification.reset
FileUtils.rm_rf @tempdir
+ ENV.replace(@orig_env)
end
def test_class_each