From 8de523c8aec19e999334753b5a982fff00d1f44c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 21 Mar 2017 09:21:52 +0100 Subject: Basic AP objects. --- test/web/activity_pub/activity_pub_test.exs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/web/activity_pub/activity_pub_test.exs (limited to 'test') 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 -- cgit v1.2.3