class RSpec::Rails::Matchers::SendEmail

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  result =
    if multiple_match?
      "More than 1 matching emails were sent."
    else
      "No matching emails were sent."
    end
  "#{result}#{sent_emails_message}"
end