summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 13:33:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-26 13:33:01 +0000
commit164fb03302fb7b794dfcfe0efd8706230f034398 (patch)
tree76a9612b2e3a4af0a6ef0f3bee1f864374923bae /test/rdoc
parent17f3a1674c2ea5fb96375dd94cf45201211b04c8 (diff)
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
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_encoding.rb6
-rw-r--r--test/rdoc/test_rdoc_markup_pre_process.rb2
-rw-r--r--test/rdoc/test_rdoc_parser_c.rb2
-rw-r--r--test/rdoc/test_rdoc_parser_changelog.rb2
-rw-r--r--test/rdoc/test_rdoc_parser_markdown.rb2
-rw-r--r--test/rdoc/test_rdoc_parser_rd.rb2
-rw-r--r--test/rdoc/test_rdoc_parser_ruby.rb4
-rw-r--r--test/rdoc/test_rdoc_parser_simple.rb2
8 files changed, 14 insertions, 8 deletions
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