Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now
This commit is contained in:
parent
c4ec817a7a
commit
b29c68e687
@ -6,6 +6,7 @@ class TestRDocRIPaths < RDoc::TestCase
|
|||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|
||||||
|
@orig_env = ENV.to_hash
|
||||||
@orig_gem_path = Gem.path
|
@orig_gem_path = Gem.path
|
||||||
|
|
||||||
@tempdir = File.join Dir.tmpdir, "test_rdoc_ri_paths_#{$$}"
|
@tempdir = File.join Dir.tmpdir, "test_rdoc_ri_paths_#{$$}"
|
||||||
@ -40,6 +41,7 @@ class TestRDocRIPaths < RDoc::TestCase
|
|||||||
Gem.use_paths(*@orig_gem_path)
|
Gem.use_paths(*@orig_gem_path)
|
||||||
Gem::Specification.reset
|
Gem::Specification.reset
|
||||||
FileUtils.rm_rf @tempdir
|
FileUtils.rm_rf @tempdir
|
||||||
|
ENV.replace(@orig_env)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_class_each
|
def test_class_each
|
||||||
|
Loading…
x
Reference in New Issue
Block a user