Module: Mail::Matchers

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

Defined Under Namespace

Classes: AnyAttachmentMatcher, AttachmentFilenameMatcher, AttachmentMimeTypeMatcher, HasSentEmailMatcher

Instance Method Summary collapse

Instance Method Details

#an_attachment_with_filename(filename) ⇒ Object



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

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

#an_attachment_with_mime_type(filename) ⇒ Object



12
13
14
# File 'lib/mail/matchers/attachment_matchers.rb', line 12

def an_attachment_with_mime_type(filename)
  AttachmentMimeTypeMatcher.new(filename)
end

#any_attachmentObject



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

def any_attachment
  AnyAttachmentMatcher.new
end

#have_sent_emailObject



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

def have_sent_email
  HasSentEmailMatcher.new(self)
end