From 9af58889fa57b1d81065aa3f202dac00767afb3a Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Thu, 10 Sep 2020 11:11:33 -0300 Subject: [PATCH] 16736: Enhances tests about login issued tokens. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- services/api/test/functional/user_sessions_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/api/test/functional/user_sessions_controller_test.rb b/services/api/test/functional/user_sessions_controller_test.rb index 129464cf1c..1f91968932 100644 --- a/services/api/test/functional/user_sessions_controller_test.rb +++ b/services/api/test/functional/user_sessions_controller_test.rb @@ -30,6 +30,7 @@ class UserSessionsControllerTest < ActionController::TestCase authorize_with :inactive api_client_page = 'http://client.example.com/home' get :login, params: {return_to: api_client_page} + assert_response :redirect assert_not_nil assigns(:api_client) assert_nil assigns(:api_client_auth).expires_at end @@ -40,6 +41,7 @@ class UserSessionsControllerTest < ActionController::TestCase authorize_with :inactive api_client_page = 'http://client.example.com/home' get :login, params: {return_to: api_client_page} + assert_response :redirect assert_not_nil assigns(:api_client) api_client_auth = assigns(:api_client_auth) assert_in_delta(api_client_auth.expires_at, -- 2.30.2