You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
392 B
18 lines
392 B
8 years ago
|
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
|