diff options
author | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-29 03:44:04 +0700 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-05-01 19:03:55 +0200 |
commit | 8af55728e47f9f62d237704cd5a33fba5f946fa2 (patch) | |
tree | 959cb63b23b24ecec18f8a107e663c424fa68315 /test/web | |
parent | 45f790becc2cc63ac000c6432fe8c84e0b589822 (diff) | |
download | pleroma-8af55728e47f9f62d237704cd5a33fba5f946fa2.tar.gz pleroma-8af55728e47f9f62d237704cd5a33fba5f946fa2.zip |
Fix tests
Diffstat (limited to 'test/web')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 15276ba7b..047270a2a 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -208,11 +208,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do } {:ok, %Activity{} = activity} = ActivityPub.insert(data) + object = Pleroma.Object.normalize(activity) assert is_binary(activity.data["context"]) - assert is_binary(activity.data["object"]["context"]) + assert is_binary(object.data["context"]) assert activity.data["context_id"] - assert activity.data["object"]["context_id"] + assert object.data["context_id"] end test "adds an id to a given object if it lacks one and is a note and inserts it to the object database" do |