Class: Email
- Inherits:
-
Object
- Object
- Defined in:
- lib/helper/mail_helpers.rb
Overview
include EmailSpec::Matcher
Class Method Summary collapse
Class Method Details
.send_email(to_address, subject, body_email, attachments) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/helper/mail_helpers.rb', line 6 def self.send_email(to_address, subject, body_email, ) include Mail::Matchers # Mail::TestMailer.deliveries.clear Mail.deliver do from "[email protected]" to to_address if to_address subject subject if subject body body_email if body_email add_file if end end |