diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-11-25 16:44:11 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-11-25 22:44:27 +0300 |
commit | fb72f2034a5d6d434b7fcdc428d559bf9312b163 (patch) | |
tree | 84bf5e16e682d31d9595e80c3f2979e75274fff9 /test | |
parent | 66f411fba0ecb350a2cd80293aabdecf402abaf9 (diff) | |
download | pleroma-fb72f2034a5d6d434b7fcdc428d559bf9312b163.tar.gz |
fix spec
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/moderation_log_test.exs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/pleroma/moderation_log_test.exs b/test/pleroma/moderation_log_test.exs index fe705def1..03b32a060 100644 --- a/test/pleroma/moderation_log_test.exs +++ b/test/pleroma/moderation_log_test.exs @@ -182,12 +182,14 @@ defmodule Pleroma.ModerationLogTest do end test "logging report update", %{moderator: moderator} do + user = insert(:user) + report = %Activity{ id: "9m9I1F4p8ftrTP6QTI", data: %{ "type" => "Flag", "state" => "resolved", - "actor" => "http://localhost:4000/users/max" + "actor" => user.ap_id } } @@ -195,13 +197,14 @@ defmodule Pleroma.ModerationLogTest do ModerationLog.insert_log(%{ actor: moderator, action: "report_update", - subject: report + subject: report, + subject_actor: user }) log = Repo.one(ModerationLog) assert log.data["message"] == - "@#{moderator.nickname} updated report ##{report.id} with 'resolved' state" + "@#{moderator.nickname} updated report ##{report.id} (on user @#{user.nickname}) with 'resolved' state" end test "logging report response", %{moderator: moderator} do |