diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_tempfile.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index a2b272747e..92ec988f63 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -343,6 +343,12 @@ puts Tempfile.new('foo').path assert_file.exist?(path) } assert_file.not_exist?(path) + + Tempfile.create("tempfile-create") {|f| + path = f.path + File.unlink(f.path) + } + assert_file.not_exist?(path) end def test_create_without_block |