mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add #be_nil to DSL
This commit is contained in:
parent
3bfaa07d4f
commit
028065ad26
1 changed files with 11 additions and 0 deletions
|
@ -262,5 +262,16 @@ module Spectator::DSL
|
||||||
Range.new({{min}}, {{max}})
|
Range.new({{min}}, {{max}})
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Indicates that some value should or should not be nil.
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
# ```
|
||||||
|
# expect(error).to be_nil
|
||||||
|
# expect(input).to_not be_nil
|
||||||
|
# ```
|
||||||
|
macro be_nil
|
||||||
|
::Spectator::Matchers::NilMatcher.new
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue