diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/fileutils/fileasserts.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Tue Jul 9 15:16:02 2013 Akinori MUSHA <knu@iDaemons.org> + + * test/fileutils/fileasserts.rb + (Test::Unit::FileAssertions#assert_not_symlink): Add a missing + optional argument "message". + Tue Jul 9 15:03:24 2013 Akinori MUSHA <knu@iDaemons.org> * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): If user diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb index 0aa139fe16..e78deee06c 100644 --- a/test/fileutils/fileasserts.rb +++ b/test/fileutils/fileasserts.rb @@ -34,7 +34,7 @@ module Test assert(File.symlink?(path), "is not a symlink: #{path}#{message&&': '}#{message||''}") end - def assert_not_symlink(path) + def assert_not_symlink(path, message=nil) assert(!File.symlink?(path), "is a symlink: #{path}#{message&&': '}#{message||''}") end |