struct Spectator::Matchers::FailedMatchData

Overview

Information about a failed match.

Defined in:

spectator/matchers/failed_match_data.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Spectator::Matchers::MatchData

description : String description, matched? : Bool matched?

Constructor methods inherited from struct Spectator::Matchers::MatchData

new(description : String) 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(description, failure_message : String, values : Array(Tuple(Symbol, String))) #

Creates the match data.


[View source]
def self.new(description, failure_message : String, **values) #

Creates the match data.


[View source]

Instance Method Detail

def failure_message : String #

Description from the matcher as to why it failed.


[View source]
def matched? : Bool #

Indicates that the match failed.


[View source]
def values : Array(Tuple(Symbol, String)) #

Additional information from the match that can be used to debug the problem.


[View source]