diff --git a/src/spectator/expectations/expectation.cr b/src/spectator/expectations/expectation.cr index d370063..536aff0 100644 --- a/src/spectator/expectations/expectation.cr +++ b/src/spectator/expectations/expectation.cr @@ -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 diff --git a/src/spectator/matchers/match_data_value.cr b/src/spectator/matchers/match_data_value.cr index 8cdb6b4..08f48d7 100644 --- a/src/spectator/matchers/match_data_value.cr +++ b/src/spectator/matchers/match_data_value.cr @@ -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 negation method. + def negate + # ... + end end end