[前][次][番号順一覧][スレッド一覧]

ruby-changes:32920

From: hsbt <ko1@a...>
Date: Sun, 16 Feb 2014 15:06:01 +0900 (JST)
Subject: [ruby-changes:32920] hsbt:r44999 (trunk): * test/pathname/test_pathname.rb: use File.exist? instead of File.exists?

hsbt	2014-02-16 15:05:55 +0900 (Sun, 16 Feb 2014)

  New Revision: 44999

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44999

  Log:
    * test/pathname/test_pathname.rb: use File.exist? instead of File.exists?

  Modified files:
    trunk/ChangeLog
    trunk/test/pathname/test_pathname.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44998)
+++ ChangeLog	(revision 44999)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Feb 16 15:05:00 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/pathname/test_pathname.rb: File.exists? is deprecated. use File.exist?
+
 Sun Feb 16 15:00:28 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* test/net/ftp/test_ftp.rb: remove unused variables.
Index: test/pathname/test_pathname.rb
===================================================================
--- test/pathname/test_pathname.rb	(revision 44998)
+++ test/pathname/test_pathname.rb	(revision 44999)
@@ -1222,7 +1222,7 @@ class TestPathname < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/pathname/test_pathname.rb#L1222
       Pathname("d").mkdir
       assert(File.directory?("d"))
       Pathname("d").rmdir
-      assert(!File.exists?("d"))
+      assert(!File.exist?("d"))
     }
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]