Fix tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-03 17:17:13 +02:00
parent c0ab3d9905
commit d3164899f3
10 changed files with 224 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ defmodule Mobilizon.Service.Activity.CommentTest do
%Event{title: event_title, uuid: event_uuid} = event = insert(:event)
%Comment{id: comment_id, actor_id: author_id} = comment = insert(:comment, event: event)
assert [organizer: :enqueued, announcement: :skipped, mentionned: :skipped] ==
assert {:ok, [organizer: :enqueued, announcement: :skipped, mentionned: :skipped]} ==
CommentActivity.insert_activity(comment)
refute_enqueued(
@@ -61,7 +61,7 @@ defmodule Mobilizon.Service.Activity.CommentTest do
]
}
assert [organizer: :enqueued, announcement: :skipped, mentionned: :enqueued] ==
assert {:ok, [organizer: :enqueued, announcement: :skipped, mentionned: :enqueued]} ==
CommentActivity.insert_activity(comment)
assert_enqueued(
@@ -107,7 +107,7 @@ defmodule Mobilizon.Service.Activity.CommentTest do
%Comment{id: comment_id, actor_id: author_id} =
comment = insert(:comment, text: "Hey you", event: event, is_announcement: true)
assert [organizer: :enqueued, announcement: :enqueued, mentionned: :skipped] ==
assert {:ok, [organizer: :enqueued, announcement: :enqueued, mentionned: :skipped]} ==
CommentActivity.insert_activity(comment)
assert_enqueued(