test/hermes/assertions_test.rb in hermes-0.4.1 vs test/hermes/assertions_test.rb in hermes-0.5.0

- old
+ new

@@ -473,10 +473,12 @@ end end private def assert_failure(msg, &block) - assert_raise_with_message Test::Unit::AssertionFailedError, msg do + klass = defined?(Test::Unit::AssertionFailedError) ? + Test::Unit::AssertionFailedError : MiniTest::Assertion + assert_raise_with_message klass, msg do block.call end end def random_string(length=20)