mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: refine messages
* test/ruby/envutil.rb (assert_file_predicate): place rest arguments after predicate name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f83b7872a
commit
742659cb6c
1 changed files with 1 additions and 1 deletions
|
@ -415,8 +415,8 @@ eom
|
|||
result = File.__send__(predicate, *args)
|
||||
result = !result if neg
|
||||
mesg = "Expected file " << args.shift.inspect
|
||||
mesg << mu_pp(args) unless args.empty?
|
||||
mesg << "#{neg} to be #{predicate}"
|
||||
mesg << mu_pp(args).sub(/\A\[(.*)\]\z/m, '(\1)') unless args.empty?
|
||||
mesg << " #{failure_message}" if failure_message
|
||||
assert(result, mesg)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue