Fixed test failure introduced by r14366.

git-svn-id: http://svn.redmine.org/redmine/trunk@14368 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-06-21 19:28:38 +00:00
parent 4f8f580906
commit 0dd95cdbc5

View File

@@ -71,8 +71,8 @@ class Member < ActiveRecord::Base
else
1
end
elsif a
a <=> b
elsif a.any?
b.any? ? a <=> b : -1
else
1
end