mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Create parameter-less initializer
This commit is contained in:
parent
c3d7aef7a9
commit
5c68e7eb52
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@ module Spectator::Matchers
|
|||
# Common matcher that tests whether a value is nil.
|
||||
# The values are compared with the `#nil?` method.
|
||||
struct NilMatcher < ConditionMatcher
|
||||
# Creates the matcher.
|
||||
def initialize
|
||||
super("nil?")
|
||||
end
|
||||
|
||||
# Determines whether the matcher is satisfied with the value given to it.
|
||||
# True is returned if the match was successful, false otherwise.
|
||||
def match?(partial : Expectations::ValueExpectationPartial(ActualType)) : Bool forall ActualType
|
||||
|
|
Loading…
Reference in a new issue