class Mail::Matchers::HasSentEmailMatcher

def explain_expectations

def explain_expectations
  result = ''
  result += "from #{@sender} " if instance_variable_defined?('@sender')
  result += "to #{@recipients.inspect} " if instance_variable_defined?('@recipients')
  result += "cc #{@copy_recipients.inspect} " if instance_variable_defined?('@copy_recipients')
  result += "bcc #{@blind_copy_recipients.inspect} " if instance_variable_defined?('@blind_copy_recipients')
  result += "with subject \"#{@subject}\" " if instance_variable_defined?('@subject')
  result += "with subject matching \"#{@subject_matcher}\" " if instance_variable_defined?('@subject_matcher')
  result += "with body \"#{@body}\" " if instance_variable_defined?('@body')
  result += "with body matching \"#{@body_matcher}\" " if instance_variable_defined?('@body_matcher')
  result += "with a text part matching \"#{@text_part_body}\" " if instance_variable_defined?('@text_part_body')
  result += "with an HTML part matching \"#{@html_part_body}\" " if instance_variable_defined?('@html_part_body')
  result
end