1
0
Fork 0
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:
Nobuyoshi Nakada 2020-04-25 00:19:01 +09:00
parent cf5b3d6798
commit ae235db25d
3 changed files with 6 additions and 4 deletions

View file

@ -14,6 +14,8 @@ class TestRDocParserChangeLog < RDoc::TestCase
def teardown
@tempfile.close!
super
end
def test_class_can_parse

View file

@ -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"

View file

@ -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