mirror of
https://github.com/redmine/redmine.git
synced 2026-03-03 19:11:28 +01:00
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:
@@ -2594,7 +2594,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
:subject => ''}
|
||||
assert_response :success
|
||||
# no project menu
|
||||
assert_select '#main-menu', 0
|
||||
assert_select '#main-menu a.overview', 0
|
||||
end
|
||||
|
||||
def test_post_create_should_send_a_notification
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user