]> source.dussan.org Git - redmine.git/commitdiff
Fixes a NoMethodError in tests with ruby 1.8.6.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 14 Nov 2010 16:51:10 +0000 (16:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 14 Nov 2010 16:51:10 +0000 (16:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4408 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 2227eddab455259eec7df26c8b2b8ec5778a162f..a09da8fbb79379fd6950c88e62409a2c6d1f2f2f 100644 (file)
@@ -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