зеркало из https://github.com/github/ruby.git
[ruby/rdoc] Should teardown in reverse order of setup
https://github.com/ruby/rdoc/commit/00fb4dd2a3
This commit is contained in:
Родитель
cf5b3d6798
Коммит
ae235db25d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче