mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user