Exception: BareTest::Assertion::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- BareTest::Assertion::Failure
- Defined in:
- lib/baretest/assertion/failure.rb
Overview
BareTest::Assertion::Failure can be raised within an assertion to indicate that the assertion failed. Unlike all other exceptions, this one will not set the Assertion’s status to :error but to :failure. The exception’s #message is used as Assertion#reason. Take a look at the implementation of some methods of BareTest::Assertion::Support for examples on how to use it.