Each version of a project can be shared with: * subprojects * projects in the project hierarchy: ancestors + descendants (needs versions management permission on the root project) * projects in the project tree: root project + all its descendants (same as above) * all projects (can be set by admin users only) Notes: * when sharing a version of a private project with others projects, its name will be visible within the other projects * a project with versions used by non descendant projects can not be archived git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3123 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -364,6 +364,15 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
assert_not_nil assigns(:versions)
|
||||
end
|
||||
|
||||
def test_changelog_showing_subprojects_versions
|
||||
get :changelog, :id => 1, :with_subprojects => 1
|
||||
assert_response :success
|
||||
assert_template 'changelog'
|
||||
assert_not_nil assigns(:versions)
|
||||
# Version on subproject appears
|
||||
assert assigns(:versions).include?(Version.find(4))
|
||||
end
|
||||
|
||||
def test_roadmap_routing
|
||||
assert_routing(
|
||||
{:method => :get, :path => 'projects/33/roadmap'},
|
||||
@@ -392,6 +401,15 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
# Completed version appears
|
||||
assert assigns(:versions).include?(Version.find(1))
|
||||
end
|
||||
|
||||
def test_roadmap_showing_subprojects_versions
|
||||
get :roadmap, :id => 1, :with_subprojects => 1
|
||||
assert_response :success
|
||||
assert_template 'roadmap'
|
||||
assert_not_nil assigns(:versions)
|
||||
# Version on subproject appears
|
||||
assert assigns(:versions).include?(Version.find(4))
|
||||
end
|
||||
|
||||
def test_project_activity_routing
|
||||
assert_routing(
|
||||
|
||||
Reference in New Issue
Block a user