summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-19 10:30:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-19 10:30:02 +0000
commit124a459d55858cecd65e57ae7f312d99bcbcbb96 (patch)
tree090e11125e905e9ede7534c3e80c4521d14ba301 /test/integration
parent33d78d605d0b6582512b5bca24c087730635e928 (diff)
downloadredmine-124a459d55858cecd65e57ae7f312d99bcbcbb96.tar.gz
redmine-124a459d55858cecd65e57ae7f312d99bcbcbb96.zip
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
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index 516872c4c..26d8680e8 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -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