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:
parent
17f3a1674c
commit
164fb03302
8 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -17,7 +17,7 @@ class TestRDocMarkupPreProcess < RDoc::TestCase
|
|||
def teardown
|
||||
super
|
||||
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_class_register
|
||||
|
|
|
@ -58,7 +58,7 @@ class TestRDocParserC < RDoc::TestCase
|
|||
def teardown
|
||||
super
|
||||
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_class_can_parse
|
||||
|
|
|
@ -12,7 +12,7 @@ class TestRDocParserChangeLog < RDoc::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_class_can_parse
|
||||
|
|
|
@ -19,7 +19,7 @@ class TestRDocParserMarkdown < RDoc::TestCase
|
|||
def teardown
|
||||
super
|
||||
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_file
|
||||
|
|
|
@ -19,7 +19,7 @@ class TestRDocParserRd < RDoc::TestCase
|
|||
def teardown
|
||||
super
|
||||
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_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
|
||||
|
|
|
@ -17,7 +17,7 @@ class TestRDocParserSimple < RDoc::TestCase
|
|||
def teardown
|
||||
super
|
||||
|
||||
@tempfile.close
|
||||
@tempfile.close!
|
||||
end
|
||||
|
||||
def test_initialize_metadata
|
||||
|
|
Loading…
Add table
Reference in a new issue