Skip to content

Commit 7ae42fc

Browse files
committed
Devise confirmation in User factory
1 parent 4deeb64 commit 7ae42fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
# access will be blocked just in the third day. Default is 0.days, meaning
115115
# the user cannot access the website without confirming their account.
116116
# config.allow_unconfirmed_access_for = 2.days
117-
config.allow_unconfirmed_access_for = 2.days if Rails.env.test?
117+
# config.allow_unconfirmed_access_for = 2.days if Rails.env.test?
118118

119119
# A period that the user is allowed to confirm their account before their
120120
# token becomes invalid. For example, if set to 3.days, the user can confirm

spec/factories/users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
factory :user do
77
email
88
password '12345678'
9-
password_confirmation '12345678'
9+
confirmed_at {Time.now}
1010
end
1111
end

0 commit comments

Comments
 (0)