Allow MatchData to control whether they can be negated

Values are still negated, but message and matching status are not.
This commit is contained in:
Michael Miller 2019-07-14 11:20:43 -06:00
parent 3e1ee7eb6d
commit 24066c46a0

View file

@ -66,5 +66,10 @@ module Spectator::Expectations
end end
end end
end end
# Indicates whether the match data should be negated.
private def negated?
!@match_data.override? && @negated
end
end end
end end