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



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

def an_attachment_with_filename(filename)
  AttachmentFilenameMatcher.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