diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-27 17:16:10 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-27 17:16:10 +0000 |
commit | f3cc84b3437a1f5c26748f75bb5cc8b8bca2d719 (patch) | |
tree | ab6da5fd236250a913967ff8f443fd3bb48d25f2 /test/functional/projects_controller_test.rb | |
parent | e5ac73b7dc80af4c70289cfad13e5e632bb92670 (diff) | |
download | redmine-f3cc84b3437a1f5c26748f75bb5cc8b8bca2d719.tar.gz redmine-f3cc84b3437a1f5c26748f75bb5cc8b8bca2d719.zip |
Show subproject versions on the Roadmap.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3760 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index ded7b8b1b..ac639d737 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -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 |