struct Spectator::Matchers::FailedMatchData
Overview
Information about a failed match.
Defined in:
spectator/matchers/failed_match_data.crConstructors
-
.new(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
initialize
initialize,
matched? : Bool
matched?
Constructor methods inherited from struct Spectator::Matchers::MatchData
new
new
Instance methods inherited from class Object
should(matcher : Spectator::Matchers::Matcher)
should,
should_not(matcher : Spectator::Matchers::Matcher)
should_not
Constructor Detail
Instance Method Detail
def values : Array(Tuple(Symbol, String))
#
Additional information from the match that can be used to debug the problem.