mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
remove warnings regarding number extensions
This commit is contained in:
@@ -63,7 +63,7 @@ class TrackableHooksTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
test "does not update anything if user has signed out along the way" do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0 do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0.days do
|
||||
user = create_user(:confirm => false)
|
||||
sign_in_as_user
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class TestHelpersTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
test "redirects if attempting to access a page with an unconfirmed account" do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0 do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0.days do
|
||||
user = create_user
|
||||
assert !user.active_for_authentication?
|
||||
|
||||
@@ -28,7 +28,7 @@ class TestHelpersTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
test "returns nil if accessing current_user with an unconfirmed account" do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0 do
|
||||
swap Devise, :allow_unconfirmed_access_for => 0.days do
|
||||
user = create_user
|
||||
assert !user.active_for_authentication?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user