fix: last incoming message sort (#4972)

This commit is contained in:
Tejaswini Chile
2022-07-06 00:37:43 +05:30
committed by GitHub
parent ac2adfbd57
commit b86638faac
5 changed files with 56 additions and 48 deletions

View File

@@ -45,7 +45,7 @@ RSpec.describe Mention, type: :model do
expect(records.first.id).to eq(mention_2.id)
expect(records.first.conversation_id).to eq(conversation_2.id)
expect(records.last.conversation_id).to eq(conversation_3.id)
expect(records.last.conversation_id).to eq(conversation_1.id)
expect(records.pluck(:id)).not_to include(conversation_4.id)
end