1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/rdoc: remove tempfiles

* test/rdoc/test_rdoc_encoding.rb (teardown): remove tempfiles.
* test/rdoc/test_rdoc_markup_pre_process.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_c.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_changelog.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_markdown.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_rd.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_ruby.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_simple.rb (teardown): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-26 13:33:01 +00:00
parent 17f3a1674c
commit 164fb03302
8 changed files with 14 additions and 8 deletions

View file

@ -10,6 +10,12 @@ class TestRDocEncoding < RDoc::TestCase
@tempfile = Tempfile.new 'test_rdoc_encoding'
end
def teardown
@tempfile.close!
super
end
def test_class_read_file
@tempfile.write "hi everybody"
@tempfile.flush

View file

@ -17,7 +17,7 @@ class TestRDocMarkupPreProcess < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile.close!
end
def test_class_register

View file

@ -58,7 +58,7 @@ class TestRDocParserC < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile.close!
end
def test_class_can_parse

View file

@ -12,7 +12,7 @@ class TestRDocParserChangeLog < RDoc::TestCase
end
def teardown
@tempfile.close
@tempfile.close!
end
def test_class_can_parse

View file

@ -19,7 +19,7 @@ class TestRDocParserMarkdown < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile.close!
end
def test_file

View file

@ -19,7 +19,7 @@ class TestRDocParserRd < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile.close!
end
def test_file

View file

@ -29,8 +29,8 @@ class TestRDocParserRuby < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile2.close
@tempfile.close!
@tempfile2.close!
end
def test_collect_first_comment

View file

@ -17,7 +17,7 @@ class TestRDocParserSimple < RDoc::TestCase
def teardown
super
@tempfile.close
@tempfile.close!
end
def test_initialize_metadata