akkoma/test/web/activity_pub/activity_pub_test.exs
2017-03-21 09:21:52 +01:00

17 lines
392 B
Elixir

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