Issues assigned to a locked/closed version are now copied (#11207).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10336 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-09 11:04:55 +00:00
parent 197a14a82e
commit 62d5b4c710
1 changed files with 1 additions and 3 deletions

View File

@ -542,9 +542,7 @@ class ProjectsControllerTest < ActionController::TestCase
assert_equal %w(issue_tracking time_tracking), project.enabled_module_names.sort assert_equal %w(issue_tracking time_tracking), project.enabled_module_names.sort
assert_equal source.versions.count, project.versions.count, "All versions were not copied" assert_equal source.versions.count, project.versions.count, "All versions were not copied"
# issues assigned to a closed version won't be copied assert_equal source.issues.count, project.issues.count, "All issues were not copied"
assert_equal source.issues.select {|i| i.fixed_version.nil? || i.fixed_version.open?}.size,
project.issues.count, "All issues were not copied"
assert_equal 0, project.members.count assert_equal 0, project.members.count
end end