mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
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:
parent
3e1ee7eb6d
commit
24066c46a0
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue