class Spectator::ExpectationFailed
- Spectator::ExpectationFailed
- Spectator::ExampleFailed
- Exception
- Reference
- Object
Overview
Exception that indicates a required expectation was not met in an example.
Defined in:
spectator/expectation_failed.crConstructors
-
.new(expectation : Spectator::Expectations::Expectation)
Creates the exception.
Instance Method Summary
-
#expectation : Expectations::Expectation
Expectation that failed.
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
def self.new(expectation : Spectator::Expectations::Expectation)
#
Creates the exception. The exception string is generated from the expecation message.