mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fileutils/fileasserts.rb
(Test::Unit::FileAssertions#assert_not_symlink): Add a missing optional argument "message". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02f61f874a
commit
f5a6a2a7e0
2 changed files with 7 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue