mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add placeholder negate method
This commit is contained in:
parent
12c71a25cd
commit
659174c66a
2 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@ module Spectator::Expectations
|
||||||
if @negated
|
if @negated
|
||||||
labeled_values.each do |labeled_value|
|
labeled_values.each do |labeled_value|
|
||||||
value = labeled_value.value
|
value = labeled_value.value
|
||||||
value.negate if value.responds_to?(:negate)
|
value.negate
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,5 +2,9 @@ module Spectator::Matchers
|
||||||
# Abstract base for all match data values.
|
# Abstract base for all match data values.
|
||||||
# All sub-classes are expected to implement their own `#to_s`.
|
# All sub-classes are expected to implement their own `#to_s`.
|
||||||
private abstract class MatchDataValue
|
private abstract class MatchDataValue
|
||||||
|
# Placeholder for negating the value.
|
||||||
|
def negate
|
||||||
|
# ...
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue