class Spectator::MultipleExpectationsFailed

Overview

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

Defined in:

spectator/multiple_expectations_failed.cr

Constructors

Instance Method Summary

Instance methods inherited from class Spectator::ExampleFailed

location : Location location, location? : Location | Nil location?

Constructor methods inherited from class Spectator::ExampleFailed

new(location : Location | Nil, message : String | Nil = nil, cause : Exception | Nil = nil) new

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should
, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not

Constructor Detail

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

Creates the exception.


[View source]

Instance Method Detail

def expectations : Array(Expectation) #

Expectations that failed.


[View source]