Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-10 12:29:23 +03:00
parent 7edf65d1ee
commit 525fa6c11b
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -254,7 +254,7 @@ class NotificationService
# Remove users with disabled notifications from array # Remove users with disabled notifications from array
# Also remove duplications and nil recipients # Also remove duplications and nil recipients
def reject_muted_users(users, project = nil) def reject_muted_users(users, project = nil)
users = users.compact.uniq users = users.to_a.compact.uniq
users.reject do |user| users.reject do |user|
next user.notification.disabled? unless project next user.notification.disabled? unless project