Activate device email change confirmation
This commit is contained in:
parent
d68d2be798
commit
0f9fdf3f75
5 changed files with 10 additions and 1 deletions
|
@ -107,6 +107,7 @@ describe User, type: :model do
|
|||
gestionnaire = create(:gestionnaire, email: user.email)
|
||||
|
||||
user.update(email: 'whoami@plop.com', password: 'super secret')
|
||||
user.confirm
|
||||
|
||||
gestionnaire.reload
|
||||
expect(gestionnaire.email).to eq('whoami@plop.com')
|
||||
|
@ -118,6 +119,7 @@ describe User, type: :model do
|
|||
admin = create(:administrateur, email: user.email)
|
||||
|
||||
user.update(email: 'whoami@plop.com', password: 'super secret')
|
||||
user.confirm
|
||||
|
||||
admin.reload
|
||||
expect(admin.email).to eq('whoami@plop.com')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue