Add utility functions for objects and activities.

This commit is contained in:
Roger Braun 2017-04-13 15:49:42 +02:00
commit f97c8e4379
3 changed files with 41 additions and 0 deletions

11
test/object_test.exs Normal file
View file

@ -0,0 +1,11 @@
defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory
test "returns an object by it's AP id" do
object = insert(:note)
found_object = Pleroma.Object.get_by_ap_id(object.data["id"])
assert object == found_object
end
end