class UrlTestMailer

Public Instance Methods

exercise_url_for(options) click to toggle source
# File actionmailer/test/url_test.rb, line 29
def exercise_url_for(options)
  @options = options
  @url = url_for(@options)
  mail(from: "from@example.com", to: "to@example.com", subject: "subject")
end
signed_up_with_url(recipient) click to toggle source
# File actionmailer/test/url_test.rb, line 22
def signed_up_with_url(recipient)
  @recipient   = recipient
  @welcome_url = url_for host: "example.com", controller: "welcome", action: "greeting"
  mail(to: recipient, subject: "[Signed up] Welcome #{recipient}",
    from: "system@loudthinking.com", date: Time.local(2004, 12, 12))
end