summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_encoding.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_encoding.rb')
-rw-r--r--test/rdoc/test_rdoc_encoding.rb6
1 files changed, 6 insertions, 0 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