mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
remove warnings regarding number extensions
This commit is contained in:
parent
1b1be514c8
commit
49086d0294
2 changed files with 3 additions and 3 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue