Skip to content

Commit

Permalink
HOME is preserved by RDoc::TestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 24, 2020
1 parent 00fb4dd commit 6c4801d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/rdoc/test_rdoc_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
class TestRDocMarkdown < RDoc::TestCase

def setup
super

@RM = RDoc::Markup

@parser = RDoc::Markdown.new
Expand Down
2 changes: 0 additions & 2 deletions test/rdoc/test_rdoc_ri_driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def setup
FileUtils.mkdir_p @home_ri

@orig_ri = ENV['RI']
@orig_home = ENV['HOME']
ENV['HOME'] = @tmpdir
@rdoc_home = File.join ENV["HOME"], ".rdoc"
FileUtils.mkdir_p @rdoc_home
Expand All @@ -33,7 +32,6 @@ def setup
end

def teardown
ENV['HOME'] = @orig_home
ENV['RI'] = @orig_ri
FileUtils.rm_rf @tmpdir

Expand Down

0 comments on commit 6c4801d

Please sign in to comment.