Class BareTest::Assertion::Failure
In: lib/baretest/assertion/failure.rb
Parent: StandardError

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.

[Validate]