f70500
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
f70500
index b6790a06af..68de345116 100644
f70500
--- a/test/test_tempfile.rb
f70500
+++ b/test/test_tempfile.rb
f70500
@@ -320,18 +320,19 @@ puts Tempfile.new('foo').path
f70500
     end
f70500
   end
f70500
 
f70500
-  def test_create_with_block
f70500
+  def test_open_with_block
f70500
     path = nil
f70500
-    Tempfile.create("tempfile-create") {|f|
f70500
+    Tempfile.open("tempfile-create") {|f|
f70500
       path = f.path
f70500
       assert(File.exist?(path))
f70500
     }
f70500
-    assert(!File.exist?(path))
f70500
+    assert(File.exist?(path))
f70500
+    File.unlink path
f70500
   end
f70500
 
f70500
-  def test_create_without_block
f70500
+  def test_open_without_block
f70500
     path = nil
f70500
-    f = Tempfile.create("tempfile-create")
f70500
+    f = Tempfile.open("tempfile-create")
f70500
     path = f.path
f70500
     assert(File.exist?(path))
f70500
     f.close
f70500
@@ -360,11 +361,4 @@ puts Tempfile.new('foo').path
f70500
   ensure
f70500
     t.close!
f70500
   end
f70500
-
f70500
-  def test_create_traversal_dir
f70500
-    expect = Dir.glob(TRAVERSAL_PATH + '*').count
f70500
-    Tempfile.create(TRAVERSAL_PATH + 'foo')
f70500
-    actual = Dir.glob(TRAVERSAL_PATH + '*').count
f70500
-    assert_equal expect, actual
f70500
-  end
f70500
 end
f70500
-- 
f70500
2.17.1
f70500