Use the main menu for project related actions that support cross-project display.

git-svn-id: http://svn.redmine.org/redmine/trunk@15983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-11-19 10:30:02 +00:00
parent 33d78d605d
commit 124a459d55
23 changed files with 66 additions and 14 deletions

View File

@@ -63,4 +63,17 @@ class MenuManagerTest < Redmine::IntegrationTest
end
end
end
def test_main_menu_should_select_projects_tab_on_project_list
get '/projects'
assert_select '#main-menu' do
assert_select 'a.projects'
assert_select 'a.projects.selected'
end
end
def test_main_menu_should_not_show_up_on_account
get '/login'
assert_select '#main-menu', 0
end
end