1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now

This commit is contained in:
Nobuyoshi Nakada 2019-09-26 22:57:25 +09:00
parent c4ec817a7a
commit b29c68e687
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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