diff options
author | Go MAEDA <maeda@farend.jp> | 2020-05-30 08:58:26 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-05-30 08:58:26 +0000 |
commit | cb0161dc0e630dc7838a506d2ce66a4910decca6 (patch) | |
tree | 043648b6cf0e6079a499b315a64fcb1f8162c75d /test/integration/lib/redmine/menu_manager_test.rb | |
parent | 48839a28628f8bc11692d8e0a96d793b238c6807 (diff) | |
download | redmine-cb0161dc0e630dc7838a506d2ce66a4910decca6.tar.gz redmine-cb0161dc0e630dc7838a506d2ce66a4910decca6.zip |
Show Roadmap tab when subprojects have defined versions (#7956).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19801 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/lib/redmine/menu_manager_test.rb')
-rw-r--r-- | test/integration/lib/redmine/menu_manager_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb index c470f438e..6fc49b64a 100644 --- a/test/integration/lib/redmine/menu_manager_test.rb +++ b/test/integration/lib/redmine/menu_manager_test.rb @@ -112,4 +112,20 @@ class MenuManagerTest < Redmine::IntegrationTest assert_select 'a.project', :count => 4 end end + + def test_project_menu_should_show_roadmap_if_subprojects_have_versions + Version.delete_all + # Create a version in the project "eCookbook Subproject 1" + version = Version.generate!(project_id: 3) + + with_settings :display_subprojects_issues => '1' do + get '/projects/ecookbook' + assert_select '#main-menu a.roadmap' + end + + with_settings :display_subprojects_issues => '0' do + get '/projects/ecookbook' + assert_select '#main-menu a.roadmap', 0 + end + end end |