class RSpec::Matchers::BuiltIn::BeNil
Not intended to be instantiated directly.
Provides the implementation for ‘be_nil`.
@api private
def failure_message
-
(String)
-
Other tags:
- Api: - private
def failure_message "expected: nil\n got: #{actual_formatted}" end
def failure_message_when_negated
-
(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