spc-pleroma/test/web/activity_pub/activity_pub_test.exs

18 lines
392 B
Elixir
Raw Normal View History

2017-03-21 08:21:52 +00:00
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