Spectator::ExpectationFailed
Inherits Spectator::ExampleFailed < Exception < Reference < Object
Exception that indicates an expectation from a test failed. When raised within a test, the test should abort.
Constructors
new(expectation : Expectation, message : String | Nil = nil, cause : Exception | Nil = nil)
Creates the exception.