diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-13 05:47:54 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-13 05:47:54 +0000 |
commit | 450bba6d3d92fa2ec1e2f884df36d8f1852ea475 (patch) | |
tree | 1fec187a1e2979c54155bc1024d4e103b50ae9f9 /test/fileutils | |
parent | 371e57550d211636917103b45175c2b11c7b9d40 (diff) |
* test/fileutils/fileasserts.rb: Fix wrong error message.
* lib/fileutils.rb (FileUtils::mv): Type Error; should utilize
Strings instead of Symbols here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r-- | test/fileutils/fileasserts.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb index 65add2ac76..1fdc879cd5 100644 --- a/test/fileutils/fileasserts.rb +++ b/test/fileutils/fileasserts.rb @@ -24,7 +24,7 @@ module Test def assert_file_exist(path) _wrap_assertion { - assert_block("file not exist: #{path}") { + assert_block("file not exists: #{path}") { File.exist?(path) } } @@ -32,7 +32,7 @@ module Test def assert_file_not_exist(path) _wrap_assertion { - assert_block("file not exist: #{path}") { + assert_block("file does exist: #{path}") { not File.exist?(path) } } @@ -40,7 +40,7 @@ module Test def assert_directory(path) _wrap_assertion { - assert_block("is not directory: #{path}") { + assert_block("is not a directory: #{path}") { File.directory?(path) } } |