1
0
Fork 0
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:
Vasiliy Ermolovich 2014-01-04 18:54:19 +03:00
parent 1b1be514c8
commit 49086d0294
2 changed files with 3 additions and 3 deletions

View file

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

View file

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