From b29c68e6876976b22f64318bf390f05447e4ca01 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 26 Sep 2019 22:57:25 +0900 Subject: Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now --- test/rdoc/test_rdoc_ri_paths.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/rdoc') 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 -- cgit v1.2.3