Add tests for override cases

Fix negated? method.
This commit is contained in:
Michael Miller 2019-07-14 11:56:10 -06:00
parent 24066c46a0
commit 946604b737
2 changed files with 106 additions and 5 deletions

View file

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