diff options
Diffstat (limited to 'test')
-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) } } |