class RSpec::Matchers::BuiltIn::RespondTo

def failure_message_when_negated

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message_when_negated
  failure_message.sub(/to respond to/, 'not to respond to')
end