struct

Spectator::Expectations::Expectation

Inherits Struct < Value < Object

Result of evaluating a matcher on an expectation partial.

Constructors

new(match_data : Matchers::MatchData, source : Source)

Creates the expectation.

Source

Instance methods

description
Source
failure?

Indicates that the expectation was not satisified.

Source
failure_message

Description of why the match failed.

Source
failure_message?

Description of why the match failed. If nil, then the match was successful.

Source
satisfied?

Indicates whether the matcher was satisified.

Source
source

Location where this expectation was defined.

Source
to_json(json : JSON::Builder)

Creates the JSON representation of the expectation.

Source
values

Additional information about the match, useful for debug.

Source
values?

Additional information about the match, useful for debug. If nil, then the match was successful.

Source