ruby-changes:32123
From: nobu <ko1@a...>
Date: Sat, 14 Dec 2013 14:43:07 +0900 (JST)
Subject: [ruby-changes:32123] nobu:r44202 (trunk): envutil.rb: refine messages
nobu 2013-12-14 14:42:57 +0900 (Sat, 14 Dec 2013) New Revision: 44202 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44202 Log: envutil.rb: refine messages * test/ruby/envutil.rb (assert_file_predicate): place rest arguments after predicate name. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 44201) +++ test/ruby/envutil.rb (revision 44202) @@ -415,8 +415,8 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L415 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/