Commit 69800055 authored by lain's avatar lain

Merge branch 'fix/tests' into 'develop'

Fix tests for `Activity.all_by_ids_with_object/1`

See merge request !1652
parents d8b76c79 3d12e05f
Pipeline #16942 passed with stages
in 44 minutes and 9 seconds
......@@ -178,7 +178,11 @@ test "all_by_ids_with_object/1" do
%{id: id1} = insert(:note_activity)
%{id: id2} = insert(:note_activity)
assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] =
Activity.all_by_ids_with_object([id1, id2])
activities =
[id1, id2]
|> Activity.all_by_ids_with_object()
|> Enum.sort(&(& < &
assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] = activities
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment