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 : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(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.
Instance Method Detail
def values : Array(Tuple(Symbol, String))
#
Additional information from the match that can be used to debug the problem.