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