diff options
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 0674ad4bfb..57ae020b25 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -82,7 +82,9 @@ module Test if ((args.empty? && !e.instance_of?(MiniTest::Assertion)) || args.any? {|a| a.instance_of?(Module) ? e.is_a?(a) : e.class == a }) msg = message(msg) { "Exception raised:\n<#{mu_pp(e)}>" } - assert(false, msg) + exc = MiniTest::Assertion.new(msg.call) + exc.set_backtrace(e.backtrace) + raise exc else raise end |