Skip to content

Commit 4e9f0ea

Browse files
nobuaycabta
authored andcommitted
Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now
1 parent 5769cb5 commit 4e9f0ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/rdoc/test_rdoc_ri_paths.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class TestRDocRIPaths < RDoc::TestCase
66
def setup
77
super
88

9+
@orig_env = ENV.to_hash
910
@orig_gem_path = Gem.path
1011

1112
@tempdir = File.join Dir.tmpdir, "test_rdoc_ri_paths_#{$$}"
@@ -40,6 +41,7 @@ def teardown
4041
Gem.use_paths(*@orig_gem_path)
4142
Gem::Specification.reset
4243
FileUtils.rm_rf @tempdir
44+
ENV.replace(@orig_env)
4345
end
4446

4547
def test_class_each

0 commit comments

Comments
 (0)