diff options
-rw-r--r-- | test/functional/trackers_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb index 80ee10a69..5d878c92a 100644 --- a/test/functional/trackers_controller_test.rb +++ b/test/functional/trackers_controller_test.rb @@ -30,13 +30,13 @@ class TrackersControllerTest < Redmine::ControllerTest assert_response :success assert_select 'table.trackers' end - + def test_index_by_anonymous_should_redirect_to_login_form @request.session[:user_id] = nil get :index assert_redirected_to '/login?back_url=http%3A%2F%2Ftest.host%2Ftrackers' end - + def test_index_by_user_should_respond_with_406 @request.session[:user_id] = 2 get :index |