module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages

def self.has_default_failure_messages?(matcher)

Other tags:
    Private: -
def self.has_default_failure_messages?(matcher)
  matcher.method(:failure_message).owner == self &&
    matcher.method(:failure_message_when_negated).owner == self
rescue NameError
  false
end

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  "expected #{description_of @actual} to #{description}".dup
end

def failure_message_when_negated

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message_when_negated
  "expected #{description_of @actual} not to #{description}".dup
end