users: sign-in after confirming an account within a short time

This commit is contained in:
Pierre de La Morinerie 2018-11-06 10:22:17 +00:00
parent 0fb9c123c9
commit b0541fba79
8 changed files with 111 additions and 13 deletions

View file

@ -4,5 +4,9 @@ FactoryBot.define do
email { generate(:user_email) }
password { 'password' }
confirmed_at { Time.zone.now }
trait :unconfirmed do
confirmed_at { nil }
end
end
end