From ee91e340968c0a3958ec45b4915a43c86193ab08 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang <jp_lang@yahoo.fr>
Date: Sun, 14 Nov 2010 16:51:10 +0000
Subject: [PATCH] Fixes a NoMethodError in tests with ruby 1.8.6.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4408 e93f8b46-1217-0410-a6f0-8f06a7374b81
---
 test/unit/issue_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 2227eddab..a09da8fbb 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -562,7 +562,7 @@ class IssueTest < ActiveSupport::TestCase
       assert_equal 2, assignable_user_ids.length
       
       assignable_user_ids.each do |user_id|
-        assert_equal 1, assignable_user_ids.count(user_id), "User #{user_id} appears more or less than once"
+        assert_equal 1, assignable_user_ids.select {|i| i == user_id}.length, "User #{user_id} appears more or less than once"
       end
     end
   end
-- 
GitLab