Fixing up tests and docs to use defaults :from => 'name' instead of defaults({:from => 'name'})

This commit is contained in:
Mikel Lindsaar 2010-01-27 00:37:22 +11:00
parent 1133757a95
commit ccea6ab07d
2 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ module ActionMailer #:nodoc:
# Examples: # Examples:
# #
# class Notifier < ActionMailer::Base # class Notifier < ActionMailer::Base
# defaults({:from => 'system@example.com'}) # defaults :from => 'no-reply@example.com',
# :return_path => 'system@example.com'
# #
# def welcome(recipient) # def welcome(recipient)
# @account = recipient # @account = recipient

View File

@ -5,9 +5,9 @@ class BaseTest < ActiveSupport::TestCase
class BaseMailer < ActionMailer::Base class BaseMailer < ActionMailer::Base
self.mailer_name = "base_mailer" self.mailer_name = "base_mailer"
defaults({:to => 'system@test.lindsaar.net', defaults :to => 'system@test.lindsaar.net',
:from => 'jose@test.plataformatec.com', :from => 'jose@test.plataformatec.com',
:reply_to => 'mikel@test.lindsaar.net'}) :reply_to => 'mikel@test.lindsaar.net'
def welcome(hash = {}) def welcome(hash = {})
headers['X-SPAM'] = "Not SPAM" headers['X-SPAM'] = "Not SPAM"