From 2875af7cf9fe22c40a3ea7c1cc34eb563a4f3eed Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 28 Aug 2013 09:13:57 +0200 Subject: use Token#authenticate for authentication This will return the user. But we can add timestamp validations and updates here. --- users/test/support/auth_test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/test/support/auth_test_helper.rb') diff --git a/users/test/support/auth_test_helper.rb b/users/test/support/auth_test_helper.rb index 47147fc..609f115 100644 --- a/users/test/support/auth_test_helper.rb +++ b/users/test/support/auth_test_helper.rb @@ -41,7 +41,7 @@ module AuthTestHelper protected def header_for_token_auth - @token = find_record(:token, :user => @current_user) + @token = find_record(:token, :authenticate => @current_user) ActionController::HttpAuthentication::Token.encode_credentials @token.id end end -- cgit v1.2.3