1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 class UserAgreementsControllerTest < ActionController::TestCase
8 test 'User agreements page shows form if some user agreements are not signed' do
9 get :index, {}, session_for(:inactive)
13 test 'User agreements page redirects if all user agreements signed' do
14 get :index, {return_to: root_path}, session_for(:active)
15 assert_response :redirect
16 assert_equal(root_url,
17 @response.redirect_url,
18 "Active user was not redirected to :return_to param")