summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 45256f02c..3d00b8634 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -483,7 +483,8 @@ class ProjectsControllerTest < ActionController::TestCase
source = Project.find(1)
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.select {|i| i.fixed_version.nil? || i.fixed_version.open?}.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
end