class

Spectator::MultipleExpectationsFailed

Inherits Spectator::ExampleFailed / Exception / Reference / Object

Exception that indicates more than one expectation from a test failed. When raised within a test, the test should abort.

Constructors

new(expectations : Array(Expectation), message : String | Nil = nil, cause : Exception | Nil = nil)

Creates the exception.

Source

Instance methods

expectations

Expectations that failed.

Source