mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix tests to account for negation wrappers
This commit is contained in:
parent
37f2ce99a3
commit
0ca0ba0a55
19 changed files with 53 additions and 45 deletions
|
@ -14,7 +14,7 @@ module Spectator::Matchers
|
|||
|
||||
# Returns the correct value based on the negated status.
|
||||
def value
|
||||
@negated ? @value1 : @value2
|
||||
@negated ? @value2 : @value1
|
||||
end
|
||||
|
||||
# Produces a stringified value.
|
||||
|
|
|
@ -4,7 +4,7 @@ module Spectator::Matchers
|
|||
private class NegatablePrefixedValue(T)
|
||||
# Negatable value.
|
||||
getter value
|
||||
|
||||
|
||||
# Creates the wrapper.
|
||||
def initialize(@positive_prefix : String, @negative_prefix : String, @value : T)
|
||||
@negated = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue