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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index c8af2f5b4d..815c243753 100644
--- a/test/test_tempfile.rb
+++ b/test/test_tempfile.rb
@@ -329,18 +329,18 @@ puts Tempfile.new('foo').path
path = nil
Tempfile.create("tempfile-create") {|f|
path = f.path
- assert(File.exist?(path))
+ assert_file.exist?(path)
}
- assert(!File.exist?(path))
+ assert_file.not_exist?(path)
end
def test_create_without_block
path = nil
f = Tempfile.create("tempfile-create")
path = f.path
- assert(File.exist?(path))
+ assert_file.exist?(path)
f.close
- assert(File.exist?(path))
+ assert_file.exist?(path)
ensure
f.close if f && !f.closed?
File.unlink path if path