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, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.new(description, failure_message, values) #

Creates the match data.


[View source]
def self.new(description, failure_message, **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]