1
0
Fork 0
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:
James Kiesel 2014-10-21 02:28:58 +13:00
parent e96c9c961b
commit c1864663aa

View file

@ -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