class MotionSpec::Matcher::BeNil

Public Instance Methods

fail!(subject, negated) click to toggle source
# File lib/motion-spec/matcher/be_nil.rb, line 8
def fail!(subject, negated)
  fail FailedExpectation.new(
    FailMessageRenderer.message_for_be_nil(negated, subject)
  )
end
matches?(value) click to toggle source
# File lib/motion-spec/matcher/be_nil.rb, line 4
def matches?(value)
  value.nil?
end