diff options
-rw-r--r-- | lib/minitest/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index 45a1acf033..593708d4c9 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -360,7 +360,7 @@ module MiniTest bool = exp.any? { |ex| ex.instance_of?(Module) ? e.kind_of?(ex) : ex == e.class } - assert(bool, bool || exception_details(e, details)) + assert(bool, bool ? '' : exception_details(e, details)) return e end |