Fixing Tests

This commit is contained in:
Absurdon 2017-12-06 22:20:55 +01:00
parent aef90cb0bf
commit d601d8643f

View file

@ -229,7 +229,11 @@ class User < ActiveRecord::Base
end
def received_messages
received_personal_messages + team.received_messages
received_personal_messages + received_team_messages
end
def received_team_messages
Message.where(recipient_id: team_id, recipient_type: 'Team' )
end
def sent_messages