mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Localize confirmable tests
This commit is contained in:
parent
e96c9c961b
commit
c1864663aa
1 changed files with 2 additions and 2 deletions
|
@ -219,14 +219,14 @@ class ConfirmableTest < ActiveSupport::TestCase
|
|||
test 'should not be active when confirm in is zero' do
|
||||
Devise.allow_unconfirmed_access_for = 0.days
|
||||
user = create_user
|
||||
user.confirmation_sent_at = Date.today
|
||||
user.confirmation_sent_at = Time.zone.today
|
||||
assert_not user.active_for_authentication?
|
||||
end
|
||||
|
||||
test 'should be active when we set allow_unconfirmed_access_for to nil' do
|
||||
swap Devise, allow_unconfirmed_access_for: nil do
|
||||
user = create_user
|
||||
user.confirmation_sent_at = Date.today
|
||||
user.confirmation_sent_at = Time.zone.today
|
||||
assert user.active_for_authentication?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue