Module: Mail::Matchers

Defined in:
lib/mail/matchers/has_sent_mail.rb,
lib/mail/matchers/attachment_matchers.rb

Defined Under Namespace

Classes: AnyAttachmentMatcher, AttachmentFilenameMatcher, HasSentEmailMatcher

Instance Method Summary collapse

Instance Method Details

#an_attachment_with_filename(filename) ⇒ Object



7
8
9
# File 'lib/mail/matchers/attachment_matchers.rb', line 7

def an_attachment_with_filename(filename)
  AttachmentFilenameMatcher.new(filename)
end

#any_attachmentObject



3
4
5
# File 'lib/mail/matchers/attachment_matchers.rb', line 3

def any_attachment
  AnyAttachmentMatcher.new
end

#have_sent_emailObject



3
4
5
# File 'lib/mail/matchers/has_sent_mail.rb', line 3

def have_sent_email
  HasSentEmailMatcher.new(self)
end