mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Restore global allow_unconfirmed_access_for after test
This commit is contained in:
@@ -224,10 +224,11 @@ class ConfirmableTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test 'should be active when we set allow_unconfirmed_access_for to nil' do
|
||||
Devise.allow_unconfirmed_access_for = nil
|
||||
user = create_user
|
||||
user.confirmation_sent_at = Date.today
|
||||
assert user.active_for_authentication?
|
||||
swap Devise, allow_unconfirmed_access_for: nil do
|
||||
user = create_user
|
||||
user.confirmation_sent_at = Date.today
|
||||
assert user.active_for_authentication?
|
||||
end
|
||||
end
|
||||
|
||||
test 'should not be active without confirmation' do
|
||||
|
||||
Reference in New Issue
Block a user