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 ++++++ test/rdoc/test_rdoc_markup_pre_process.rb | 2 +- test/rdoc/test_rdoc_parser_c.rb | 2 +- test/rdoc/test_rdoc_parser_changelog.rb | 2 +- test/rdoc/test_rdoc_parser_markdown.rb | 2 +- test/rdoc/test_rdoc_parser_rd.rb | 2 +- test/rdoc/test_rdoc_parser_ruby.rb | 4 ++-- test/rdoc/test_rdoc_parser_simple.rb | 2 +- 8 files changed, 14 insertions(+), 8 deletions(-) (limited to 'test/rdoc') 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 diff --git a/test/rdoc/test_rdoc_markup_pre_process.rb b/test/rdoc/test_rdoc_markup_pre_process.rb index a241d0dec3..7cbe29c5a9 100644 --- a/test/rdoc/test_rdoc_markup_pre_process.rb +++ b/test/rdoc/test_rdoc_markup_pre_process.rb @@ -17,7 +17,7 @@ class TestRDocMarkupPreProcess < RDoc::TestCase def teardown super - @tempfile.close + @tempfile.close! end def test_class_register diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb index 99be1cdead..88d4660766 100644 --- a/test/rdoc/test_rdoc_parser_c.rb +++ b/test/rdoc/test_rdoc_parser_c.rb @@ -58,7 +58,7 @@ class TestRDocParserC < RDoc::TestCase def teardown super - @tempfile.close + @tempfile.close! end def test_class_can_parse diff --git a/test/rdoc/test_rdoc_parser_changelog.rb b/test/rdoc/test_rdoc_parser_changelog.rb index e6fa7a06c6..4d83983092 100644 --- a/test/rdoc/test_rdoc_parser_changelog.rb +++ b/test/rdoc/test_rdoc_parser_changelog.rb @@ -12,7 +12,7 @@ class TestRDocParserChangeLog < RDoc::TestCase end def teardown - @tempfile.close + @tempfile.close! end def test_class_can_parse diff --git a/test/rdoc/test_rdoc_parser_markdown.rb b/test/rdoc/test_rdoc_parser_markdown.rb index 597407ff68..b17e14432b 100644 --- a/test/rdoc/test_rdoc_parser_markdown.rb +++ b/test/rdoc/test_rdoc_parser_markdown.rb @@ -19,7 +19,7 @@ class TestRDocParserMarkdown < RDoc::TestCase def teardown super - @tempfile.close + @tempfile.close! end def test_file diff --git a/test/rdoc/test_rdoc_parser_rd.rb b/test/rdoc/test_rdoc_parser_rd.rb index bed47950fb..9be0d7d31c 100644 --- a/test/rdoc/test_rdoc_parser_rd.rb +++ b/test/rdoc/test_rdoc_parser_rd.rb @@ -19,7 +19,7 @@ class TestRDocParserRd < RDoc::TestCase def teardown super - @tempfile.close + @tempfile.close! end def test_file diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb index 397885806c..5306032b98 100644 --- a/test/rdoc/test_rdoc_parser_ruby.rb +++ b/test/rdoc/test_rdoc_parser_ruby.rb @@ -29,8 +29,8 @@ class TestRDocParserRuby < RDoc::TestCase def teardown super - @tempfile.close - @tempfile2.close + @tempfile.close! + @tempfile2.close! end def test_collect_first_comment diff --git a/test/rdoc/test_rdoc_parser_simple.rb b/test/rdoc/test_rdoc_parser_simple.rb index 356ea07504..d45a99358a 100644 --- a/test/rdoc/test_rdoc_parser_simple.rb +++ b/test/rdoc/test_rdoc_parser_simple.rb @@ -17,7 +17,7 @@ class TestRDocParserSimple < RDoc::TestCase def teardown super - @tempfile.close + @tempfile.close! end def test_initialize_metadata -- cgit v1.2.3