From c11f98eddc78938808ee5548e258b82beb533d93 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 May 2014 13:33:06 +0000 Subject: 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 --- test/rdoc/test_rdoc_rd_block_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rdoc/test_rdoc_rd_block_parser.rb') diff --git a/test/rdoc/test_rdoc_rd_block_parser.rb b/test/rdoc/test_rdoc_rd_block_parser.rb index 7aa44925e8..5158f46b26 100644 --- a/test/rdoc/test_rdoc_rd_block_parser.rb +++ b/test/rdoc/test_rdoc_rd_block_parser.rb @@ -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 -- cgit v1.2.3