1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use proc to delay making exception_details.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-11-22 05:38:55 +00:00
parent cc56bdee40
commit a0ef626241

View file

@ -355,7 +355,7 @@ module MiniTest
details = "#{msg}#{mu_pp(exp)} exception expected, not"
assert(exp.any? { |ex|
ex.instance_of?(Module) ? e.kind_of?(ex) : ex == e.class
}, exception_details(e, details))
}, proc{exception_details(e, details)})
return e
end