Add placeholder negate method

This commit is contained in:
Michael Miller 2019-04-06 12:41:38 -06:00
parent 12c71a25cd
commit 659174c66a
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,7 @@ module Spectator::Expectations
if @negated
labeled_values.each do |labeled_value|
value = labeled_value.value
value.negate if value.responds_to?(:negate)
value.negate
end
end
end

View file

@ -2,5 +2,9 @@ module Spectator::Matchers
# Abstract base for all match data values.
# All sub-classes are expected to implement their own `#to_s`.
private abstract class MatchDataValue
# Placeholder for negating the value.
def negate
# ...
end
end
end