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:
parent
cc56bdee40
commit
a0ef626241
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue