mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user