mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Implement #to_not
This commit is contained in:
parent
5eb5561e61
commit
a65aedbfb7
1 changed files with 11 additions and 0 deletions
|
@ -16,5 +16,16 @@ module Spectator
|
|||
raise ExpectationFailedError.new
|
||||
end
|
||||
end
|
||||
|
||||
def to_not(matcher : Matchers::Matcher)
|
||||
if matcher.match?(self)
|
||||
raise ExpectationFailedError.new
|
||||
end
|
||||
end
|
||||
|
||||
@[AlwaysInline]
|
||||
def not_to(matcher : Matchers::Matcher)
|
||||
to_not(matcher)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue