Adds a link to all projects in the jump drop down (#23310).

git-svn-id: http://svn.redmine.org/redmine/trunk@16172 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-01-10 18:33:36 +00:00
parent f1a42f21a6
commit 2734eaffd8
6 changed files with 31 additions and 5 deletions

View File

@@ -745,6 +745,16 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_select_error /Identifier cannot be blank/
end
def test_jump_without_project_id_should_redirect_to_active_tab
get :index, :jump => 'issues'
assert_redirected_to '/issues'
end
def test_jump_should_not_redirect_to_unknown_tab
get :index, :jump => 'foobar'
assert_response :success
end
def test_jump_should_redirect_to_active_tab
get :show, :id => 1, :jump => 'issues'
assert_redirected_to '/projects/ecookbook/issues'