summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_tempfile.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index 92ec988f63..8973051636 100644
--- a/test/test_tempfile.rb
+++ b/test/test_tempfile.rb
@@ -346,6 +346,7 @@ puts Tempfile.new('foo').path
Tempfile.create("tempfile-create") {|f|
path = f.path
+ f.close
File.unlink(f.path)
}
assert_file.not_exist?(path)