Refactor all tests that acessed the embeded object

This commit is contained in:
rinpatch 2019-04-17 15:46:59 +03:00
commit ff8d76c670
7 changed files with 14 additions and 21 deletions

View file

@ -14,6 +14,6 @@ defmodule Pleroma.ScheduledActivityWorkerTest do
refute Repo.get(ScheduledActivity, scheduled_activity.id)
activity = Repo.all(Pleroma.Activity) |> Enum.find(&(&1.actor == user.ap_id))
assert activity.data["object"]["content"] == "hi"
assert Pleroma.Object.normalize(activity).data["content"] == "hi"
end
end