aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r--test/test_tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index 4b31e7f158..27263fca80 100644
--- a/test/test_tempfile.rb
+++ b/test/test_tempfile.rb
@@ -401,8 +401,8 @@ puts Tempfile.new('foo').path
assert_equal expect, actual
ensure
if t
- File.unlink(t.path)
t.close
+ File.unlink(t.path)
end
end
end