class BaconExpect::Matcher::BeNil

Public Instance Methods

fail!(subject, negated) click to toggle source
# File lib/bacon-expect/matchers/be_nil.rb, line 7
def fail!(subject, negated)
  raise FailedExpectation.new(FailMessageRenderer.message_for_be_nil(negated, subject))
end
matches?(value) click to toggle source
# File lib/bacon-expect/matchers/be_nil.rb, line 3
def matches?(value)
  value == nil
end