mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix negation of values in Expectation
This commit is contained in:
parent
33841e8888
commit
92b407380b
1 changed files with 3 additions and 2 deletions
|
@ -21,9 +21,10 @@ module Spectator::Expectations
|
|||
# Information about the match.
|
||||
# Returned value and type will something that has key-value pairs (like a `NamedTuple`).
|
||||
def values
|
||||
@match_data.values.tap do |values|
|
||||
@match_data.values.tap do |labeled_values|
|
||||
if @negated
|
||||
values.each_value do |value|
|
||||
labeled_values.each do |labeled_value|
|
||||
value = labeled_value.value
|
||||
value.negate if value.responds_to?(:negate)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue