Skip to content

Commit cfa56a4

Browse files
Apply suggestion from @runephilosof-abtion
Co-authored-by: Rune Philosof <57357936+runephilosof-abtion@users.noreply.github.com>
1 parent 9ee7a88 commit cfa56a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/confirmable_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def visit_admin_confirmation_with_token(confirmation_token)
365365

366366
# Now the attacker updates to the same prior unconfirmed email address, and confirm.
367367
# This should update the `unconfirmed_email` in the database, even though it is unchanged from the models point of view.
368-
attacker.update(email: attacker_email)
368+
attacker.update!(email: attacker_email)
369369
attacker_token = attacker.raw_confirmation_token
370370
visit_admin_confirmation_with_token(attacker_token)
371371

0 commit comments

Comments
 (0)