diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-30 18:07:01 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-30 18:07:29 +0200 |
commit | 6aa1523bb3d8dfe12ce5143d27023fd833b0c1aa (patch) | |
tree | 94b67050b13883c19fad0ef1bf52f5a5d0ddf8c9 /test | |
parent | 40eb0e4c24b74e608f11f9f77d9ef2d843641014 (diff) | |
download | pleroma-6aa1523bb3d8dfe12ce5143d27023fd833b0c1aa.tar.gz |
Put objects in inserted activties into the db.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 0e778d887..2c6f67621 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -25,7 +25,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do assert activity.data["id"] == given_id end - test "adds an id to a given object if it lacks one" do + test "adds an id to a given object if it lacks one and inserts it to the object database" do data = %{ "object" => %{ "ok" => true @@ -34,6 +34,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do {:ok, %Activity{} = activity} = ActivityPub.insert(data) assert is_binary(activity.data["object"]["id"]) + assert %Object{} = Object.get_by_ap_id(activity.data["object"]["id"]) end end |