class RSpec::Matchers::BuiltIn::BeNil

Not intended to be instantiated directly.
Provides the implementation for ‘be_nil`.
@api private

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  "expected: nil\n     got: #{actual_formatted}"
end

def failure_message_when_negated

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message_when_negated
  "expected: not nil\n     got: nil"
end

def match(_, actual)

def match(_, actual)
  actual.nil?
end