Show subproject versions on the Roadmap.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3760 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-05-27 17:16:10 +00:00
parent e5ac73b7dc
commit f3cc84b343
4 changed files with 67 additions and 3 deletions

View File

@@ -364,12 +364,14 @@ class ProjectsControllerTest < ActionController::TestCase
end
def test_roadmap_showing_subprojects_versions
@subproject_version = Version.generate!(:project => Project.find(3))
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))
assert assigns(:versions).include?(Version.find(4)), "Shared version not found"
assert assigns(:versions).include?(@subproject_version), "Subproject version not found"
end
def test_project_activity
get :activity, :id => 1, :with_subprojects => 0