class Object
Public Instance Methods
mailer_from_email(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/from_matcher.rb, line 40 def mailer_from_email(mailer) mailer.message['from_email'] end
mailer_from_name(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/from_matcher.rb, line 44 def mailer_from_name(mailer) mailer.message['from_name'] end
mailer_subject(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/subject_matcher.rb, line 36 def mailer_subject(mailer) mailer.message['subject'] end
mailer_template(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/template_matcher.rb, line 36 def mailer_template(mailer) mailer.template_name end
mailer_to_data(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/to_email_matcher.rb, line 59 def mailer_to_data(mailer) # {email: 'user@email.com', name: 'larry'} mailer.message['to'] end
merge_vars_from(mailer)
click to toggle source
# File lib/mandrill_mailer/rspec_helpers/merge_var_content_matcher.rb, line 44 def merge_vars_from(mailer) # Merge vars are in format: # [{"name"=>"USER_EMAIL", "content"=>"zoila@homenick.name"},{"name"=>"USER_NAME", "content"=>"Bob"}] mailer.message['global_merge_vars'] end