summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-14 05:42:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-14 05:42:57 +0000
commit742659cb6c03da6ab61c7036a0ca6abdd5964119 (patch)
tree75c3e04b83b664e6a74cff66631ce70cd17d17a7 /test/ruby/envutil.rb
parent7f83b7872ab4d97918119e7015c97e0dadc37a05 (diff)
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
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index 93f054724f..5e665e54dd 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -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