diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-21 09:21:52 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-21 09:21:52 +0100 |
commit | 8de523c8aec19e999334753b5a982fff00d1f44c (patch) | |
tree | da09a6e41a579734a5056348dd248e40825a05be /test | |
parent | 093fd1832dd9e8137e28932fe167bcdc7e228366 (diff) | |
download | pleroma-8de523c8aec19e999334753b5a982fff00d1f44c.tar.gz |
Basic AP objects.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs new file mode 100644 index 000000000..1b4b121b3 --- /dev/null +++ b/test/web/activity_pub/activity_pub_test.exs @@ -0,0 +1,17 @@ +defmodule Pleroma.Web.ActivityPub.ActivityPubTest do + use Pleroma.DataCase + alias Pleroma.Web.ActivityPub.ActivityPub + alias Pleroma.Activity + + describe "insertion" do + test "inserts a given map into the activity database" do + data = %{ + ok: true + } + + {:ok, %Activity{} = activity} = ActivityPub.insert(data) + assert activity.data == data + end + end + +end |