class Spectator::ExpectationFailed

Overview

Exception that indicates a required expectation was not met in an example.

Defined in:

spectator/expectation_failed.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def expectation : Expectations::Expectation #

Expectation that failed.


[View source]