Fix tests with enabled RUM

This commit is contained in:
Egor Kislitsyn 2019-05-31 17:11:45 +07:00
parent 94b9e9d844
commit 17a6f81f7b
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ test "find local and remote statuses for authenticated users", %{
remote_activity: remote_activity,
user: user
} do
assert [^remote_activity, ^local_activity] = Activity.search(user, "find me")
activities = Enum.sort_by(Activity.search(user, "find me"), & &1.id)
assert [^local_activity, ^remote_activity] = activities
end
test "find only local statuses for unauthenticated users", %{local_activity: local_activity} do