struct Spectator::Matchers::FailedMatchData
Overview
Information about a failed match.
Defined in:
spectator/matchers/failed_match_data.crConstructors
-
.new(description, failure_message : String, values : Array(Tuple(Symbol, String)))
Creates the match data.
-
.new(description, failure_message : String, **values)
Creates the match data.
Instance Method Summary
-
#failure_message : String
Description from the matcher as to why it failed.
-
#matched? : Bool
Indicates that the match failed.
-
#values : Array(Tuple(Symbol, String))
Additional information from the match that can be used to debug the problem.
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)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
def self.new(description, failure_message : String, values : Array(Tuple(Symbol, String)))
#
Creates the match data.
Instance Method Detail
def values : Array(Tuple(Symbol, String))
#
Additional information from the match that can be used to debug the problem.