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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue