From 4c9d76713762780aa89f4b1f3503c5308a7eb07e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 4 Jan 2020 09:32:56 -0700 Subject: [PATCH] Add missing description arguments --- src/spectator/matchers/have_predicate_matcher.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spectator/matchers/have_predicate_matcher.cr b/src/spectator/matchers/have_predicate_matcher.cr index 93bcca6..c8d2ad1 100644 --- a/src/spectator/matchers/have_predicate_matcher.cr +++ b/src/spectator/matchers/have_predicate_matcher.cr @@ -25,9 +25,9 @@ module Spectator::Matchers def match(actual : TestExpression(T)) : MatchData forall T snapshot = snapshot_values(actual.value) if match?(snapshot) - SuccessfulMatchData.new + SuccessfulMatchData.new(description) else - FailedMatchData.new("#{actual.label} does not have #{expected.label}", **values(snapshot)) + FailedMatchData.new(description, "#{actual.label} does not have #{expected.label}", **values(snapshot)) end end @@ -36,9 +36,9 @@ module Spectator::Matchers def negated_match(actual : TestExpression(T)) : MatchData forall T snapshot = snapshot_values(actual.value) if match?(snapshot) - FailedMatchData.new("#{actual.label} has #{expected.label}", **values(snapshot)) + FailedMatchData.new(description, "#{actual.label} has #{expected.label}", **values(snapshot)) else - SuccessfulMatchData.new + SuccessfulMatchData.new(description) end end