mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add missing description arguments
This commit is contained in:
parent
7f8d9d5ef3
commit
4c9d767137
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue