aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_rd_block_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_rd_block_parser.rb')
-rw-r--r--test/rdoc/test_rdoc_rd_block_parser.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_rd_block_parser.rb b/test/rdoc/test_rdoc_rd_block_parser.rb
index 5158f46b26..956f3d2822 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.create %w[parse_include .rd] do |io|
+ tf = Tempfile.open %w[parse_include .rd] do |io|
io.puts "=begin\ninclude ((*worked*))\n=end"
io.flush
@@ -162,7 +162,9 @@ class TestRDocRdBlockParser < RDoc::TestCase
STR
assert_equal expected, parse(str)
+ io
end
+ tf.close! if tf.respond_to? :close!
end
def test_parse_heading