From 164fb03302fb7b794dfcfe0efd8706230f034398 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 May 2014 13:33:01 +0000 Subject: 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 --- test/rdoc/test_rdoc_encoding.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/rdoc/test_rdoc_encoding.rb') diff --git a/test/rdoc/test_rdoc_encoding.rb b/test/rdoc/test_rdoc_encoding.rb index 89277585ec..f50e2f6012 100644 --- a/test/rdoc/test_rdoc_encoding.rb +++ b/test/rdoc/test_rdoc_encoding.rb @@ -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 -- cgit v1.2.3