added test file for comments_controller WIP

This commit is contained in:
raluka 2015-09-09 16:50:07 +02:00
parent e5c235ac32
commit d365d5efa1
3 changed files with 35 additions and 3 deletions

View file

@ -280,6 +280,6 @@ module ApplicationHelper
end
def unread_notifications(user)
Comment.accessible_by(current_ability).find_since_last_login(current_user).limit(5)
Comment.accessible_by(current_ability).find_since_last_login(user).limit(5)
end
end