summaryrefslogtreecommitdiffstats
path: root/test/integration/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-07 05:09:13 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-07 05:09:13 +0000
commit7fe7fdd7bc87a0e34225e66c91ab6583d6989f28 (patch)
treedefa6ca627d4cf2784f772647f53a9c8b166220a /test/integration/lib
parentbd31345c87f8d19a98edb5977507bc8f76da1688 (diff)
downloadredmine-7fe7fdd7bc87a0e34225e66c91ab6583d6989f28.tar.gz
redmine-7fe7fdd7bc87a0e34225e66c91ab6583d6989f28.zip
Roadmap tab is missing if there are only inherited from parent project versions (#34983).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20921 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/lib')
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index 5b27bdbf1..9bac57ad4 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -147,4 +147,21 @@ class MenuManagerTest < Redmine::IntegrationTest
assert_select '#main-menu a.roadmap', 0
end
end
+
+ def test_project_menu_should_show_roadmap_if_project_has_shared_version
+ Version.delete_all
+ project = Project.generate!(:parent_id => 2)
+
+ Version.generate!(project_id: 2, sharing: 'tree')
+
+ with_settings :display_subprojects_issues => '1' do
+ get "/projects/#{project.id}"
+ assert_select '#main-menu a.roadmap'
+ end
+
+ with_settings :display_subprojects_issues => '0' do
+ get "/projects/#{project.id}"
+ assert_select '#main-menu a.roadmap'
+ end
+ end
end