Adds API response to /trackers to get the list of all available trackers (#7181).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7877 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-11-20 14:17:43 +00:00
parent 8b5b928b92
commit 053adaef52
6 changed files with 97 additions and 3 deletions
@@ -37,6 +37,18 @@ class TrackersControllerTest < ActionController::TestCase
assert_response :success
assert_template 'index'
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
assert_response 406
end
def test_get_new
get :new