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
|
def match(actual : TestExpression(T)) : MatchData forall T
|
||||||
snapshot = snapshot_values(actual.value)
|
snapshot = snapshot_values(actual.value)
|
||||||
if match?(snapshot)
|
if match?(snapshot)
|
||||||
SuccessfulMatchData.new
|
SuccessfulMatchData.new(description)
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ module Spectator::Matchers
|
||||||
def negated_match(actual : TestExpression(T)) : MatchData forall T
|
def negated_match(actual : TestExpression(T)) : MatchData forall T
|
||||||
snapshot = snapshot_values(actual.value)
|
snapshot = snapshot_values(actual.value)
|
||||||
if match?(snapshot)
|
if match?(snapshot)
|
||||||
FailedMatchData.new("#{actual.label} has #{expected.label}", **values(snapshot))
|
FailedMatchData.new(description, "#{actual.label} has #{expected.label}", **values(snapshot))
|
||||||
else
|
else
|
||||||
SuccessfulMatchData.new
|
SuccessfulMatchData.new(description)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue