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:
parent
c4ec817a7a
commit
b29c68e687
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue