mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Should teardown in reverse order of setup
https://github.com/ruby/rdoc/commit/00fb4dd2a3
This commit is contained in:
parent
cf5b3d6798
commit
ae235db25d
3 changed files with 6 additions and 4 deletions
|
@ -14,6 +14,8 @@ class TestRDocParserChangeLog < RDoc::TestCase
|
|||
|
||||
def teardown
|
||||
@tempfile.close!
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def test_class_can_parse
|
||||
|
|
|
@ -33,11 +33,11 @@ class TestRDocRIDriver < RDoc::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
ENV['HOME'] = @orig_home
|
||||
ENV['RI'] = @orig_ri
|
||||
FileUtils.rm_rf @tmpdir
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
DUMMY_PAGER = ":;\n"
|
||||
|
|
|
@ -36,12 +36,12 @@ class TestRDocRIPaths < RDoc::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
Gem.use_paths(*@orig_gem_path)
|
||||
Gem::Specification.reset
|
||||
FileUtils.rm_rf @tempdir
|
||||
ENV.replace(@orig_env)
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def test_class_each
|
||||
|
|
Loading…
Add table
Reference in a new issue