Change email_change => email_changed notification

This better indicates what the setting is for, and when it's supposed to
be triggered.

We might eventually deprecate the existing password_change on in favor
of password_changed.
This commit is contained in:
Carlos Antonio da Silva
2017-03-10 08:56:33 -03:00
parent d7f6855ad8
commit 2135ae5e5e
11 changed files with 19 additions and 19 deletions

View File

@@ -518,7 +518,7 @@ class ReconfirmableTest < ActiveSupport::TestCase
end
test 'should notify previous email on email change when configured' do
swap Devise, send_email_change_notification: true do
swap Devise, send_email_changed_notification: true do
admin = create_admin
original_email = admin.email

View File

@@ -237,7 +237,7 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
end
test 'should notify previous email on email change when configured' do
swap Devise, send_email_change_notification: true do
swap Devise, send_email_changed_notification: true do
user = create_user
original_email = user.email
assert_email_sent original_email do