test/mailers/confirmation_instructions_test.rb in devise-0.3.0 vs test/mailers/confirmation_instructions_test.rb in devise-0.4.0
- old
+ new
@@ -2,11 +2,11 @@
class ConfirmationInstructionsTest < ActionMailer::TestCase
def setup
setup_mailer
- Notifier.sender = 'test@example.com'
+ DeviseMailer.sender = 'test@example.com'
end
def user
@user ||= create_user
end
@@ -34,16 +34,16 @@
test 'setup sender from configuration' do
assert_equal ['test@example.com'], mail.from
end
test 'setup subject from I18n' do
- store_translations :en, :devise => { :notifier => { :confirmation_instructions => 'Account Confirmation' } } do
+ store_translations :en, :devise => { :mailer => { :confirmation_instructions => 'Account Confirmation' } } do
assert_equal 'Account Confirmation', mail.subject
end
end
test 'subject namespaced by model' do
- store_translations :en, :devise => { :notifier => { :user => { :confirmation_instructions => 'User Account Confirmation' } } } do
+ store_translations :en, :devise => { :mailer => { :user => { :confirmation_instructions => 'User Account Confirmation' } } } do
assert_equal 'User Account Confirmation', mail.subject
end
end
test 'body should have user info' do