From 49086d0294d0b2e18ebb8d7a83aa15063d8e703c Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Sat, 4 Jan 2014 18:54:19 +0300 Subject: [PATCH] remove warnings regarding number extensions --- test/integration/trackable_test.rb | 2 +- test/test_helpers_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/trackable_test.rb b/test/integration/trackable_test.rb index 68cfb93c..44156bfd 100644 --- a/test/integration/trackable_test.rb +++ b/test/integration/trackable_test.rb @@ -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 diff --git a/test/test_helpers_test.rb b/test/test_helpers_test.rb index a91b9f68..7db2c6f8 100644 --- a/test/test_helpers_test.rb +++ b/test/test_helpers_test.rb @@ -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?