mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] HOME is preserved by RDoc::TestCase
https://github.com/ruby/rdoc/commit/6c4801d1f6
This commit is contained in:
parent
ae235db25d
commit
cc8f55e9e3
2 changed files with 2 additions and 2 deletions
|
@ -8,6 +8,8 @@ require 'rdoc/markdown'
|
|||
class TestRDocMarkdown < RDoc::TestCase
|
||||
|
||||
def setup
|
||||
super
|
||||
|
||||
@RM = RDoc::Markup
|
||||
|
||||
@parser = RDoc::Markdown.new
|
||||
|
|
|
@ -13,7 +13,6 @@ class TestRDocRIDriver < RDoc::TestCase
|
|||
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
|
||||
|
@ -33,7 +32,6 @@ class TestRDocRIDriver < RDoc::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
ENV['HOME'] = @orig_home
|
||||
ENV['RI'] = @orig_ri
|
||||
FileUtils.rm_rf @tmpdir
|
||||
|
||||
|
|
Loading…
Reference in a new issue