Skip to content

Commit 6c4801d

Browse files
committed
HOME is preserved by RDoc::TestCase
1 parent 00fb4dd commit 6c4801d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/rdoc/test_rdoc_markdown.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
class TestRDocMarkdown < RDoc::TestCase
99

1010
def setup
11+
super
12+
1113
@RM = RDoc::Markup
1214

1315
@parser = RDoc::Markdown.new

test/rdoc/test_rdoc_ri_driver.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def setup
1313
FileUtils.mkdir_p @home_ri
1414

1515
@orig_ri = ENV['RI']
16-
@orig_home = ENV['HOME']
1716
ENV['HOME'] = @tmpdir
1817
@rdoc_home = File.join ENV["HOME"], ".rdoc"
1918
FileUtils.mkdir_p @rdoc_home
@@ -33,7 +32,6 @@ def setup
3332
end
3433

3534
def teardown
36-
ENV['HOME'] = @orig_home
3735
ENV['RI'] = @orig_ri
3836
FileUtils.rm_rf @tmpdir
3937

0 commit comments

Comments
 (0)