Refactor all tests that acessed the embeded object
This commit is contained in:
parent
c3a2052806
commit
ff8d76c670
7 changed files with 14 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue