summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_ri_paths.rb2
1 files changed, 2 insertions, 0 deletions
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