GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 4a39b190 authored by tmaruyama's avatar tmaruyama

fix functional projects controller test fails in Ruby 1.8.6.

Array#count is introduced in Ruby 1.8.7.

git-svn-id: https://svn.redmine.org/redmine/trunk@5477 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b8cbebec
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment