diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 06:05:55 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 06:05:55 +0000 |
commit | 2e1d21f53c2f45f1773c8bb246e0de086f803170 (patch) | |
tree | f2b04360c7280e1ea0bba17c180ed5862b24353b | |
parent | 72191a0acd84784184d20592ed8aba8ce91f911e (diff) | |
download | ruby-2e1d21f53c2f45f1773c8bb246e0de086f803170.tar.gz |
* test/pathname/test_pathname.rb: use File.exist? instead of File.exists?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/pathname/test_pathname.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Feb 16 15:05:00 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> + + * test/pathname/test_pathname.rb: File.exists? is deprecated. use File.exist? + Sun Feb 16 15:00:28 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * test/net/ftp/test_ftp.rb: remove unused variables. diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index ec9dfa1d59..8008e8c0af 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -1222,7 +1222,7 @@ class TestPathname < Test::Unit::TestCase Pathname("d").mkdir assert(File.directory?("d")) Pathname("d").rmdir - assert(!File.exists?("d")) + assert(!File.exist?("d")) } end |