diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-16 06:46:11 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-16 06:46:11 +0000 |
commit | eb4ca1ac292dff25fa42e4d6a26f054c573d0e73 (patch) | |
tree | a60d61ee40b451fbf31b5b5652a628f9a9e4a1ed /test/functional/projects_controller_test.rb | |
parent | a7c510fd0a77f72bc352e05e4c4ff47e60041c1f (diff) | |
download | redmine-eb4ca1ac292dff25fa42e4d6a26f054c573d0e73.tar.gz redmine-eb4ca1ac292dff25fa42e4d6a26f054c573d0e73.zip |
fix functional projects controller test fails in Ruby 1.8.6.
Array#count is introduced in Ruby 1.8.7.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5477 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 3 |
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 |