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

test/rdoc: avoid tempfile leaks

* test/rdoc/test_rdoc_parser.rb (test_class_for_forbidden): avoid
  tempfile leaks by using `Tempfile.create` instead of
  `Tempfile.open`.
* test/rdoc/test_rdoc_rd_block_parser.rb (test_parse_include_subtree):
  ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_encoding): ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_forbidden): ditto.

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

View file

@ -153,7 +153,7 @@ class TestRDocRdBlockParser < RDoc::TestCase
blank_line,
blank_line)
Tempfile.open %w[parse_include .rd] do |io|
Tempfile.create %w[parse_include .rd] do |io|
io.puts "=begin\ninclude ((*worked*))\n=end"
io.flush