Skip to content

Commit

Permalink
Don't confirm user when testing account lockout
Browse files Browse the repository at this point in the history
Confirming triggers the DeviseMailer.invitation_instructions job, which isn't intended
  • Loading branch information
jayjay-w committed Jan 30, 2024
1 parent f77015b commit 6bb418d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/controllers/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def setup

test "should unlock locked user accounts after specified time" do
u = create_user login: 'test', password: '12345678', password_confirmation: '12345678', email: '[email protected]'
u.confirm
maximum_attempts = Devise.maximum_attempts

maximum_attempts.times do
Expand Down

0 comments on commit 6bb418d

Please sign in to comment.