diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/minitest/unit.rb | 2 | ||||
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index c45dec3fc4..28e14498a4 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -222,6 +222,8 @@ module MiniTest begin yield should_raise = true + rescue MiniTest::Skip + raise rescue Exception => e details = "#{msg}#{mu_pp(exp)} exception expected, not" assert(exp.any? { |ex| diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index f4e4e74e1e..6e4707fc25 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -32,6 +32,8 @@ module Test end begin line = __LINE__; yield + rescue MiniTest::Skip + raise rescue Exception => e bt = e.backtrace as = e.instance_of?(MiniTest::Assertion) |