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
454 B
18 lines
454 B
7 years ago
|
defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
|
||
|
use Pleroma.DataCase
|
||
|
import Pleroma.Factory
|
||
|
|
||
|
alias Pleroma.Web.ActivityPub.ObjectView
|
||
|
|
||
|
test "renders a note object" do
|
||
|
note = insert(:note)
|
||
|
|
||
|
result = ObjectView.render("object.json", %{object: note})
|
||
|
|
||
|
assert result["id"] == note.data["id"]
|
||
|
assert result["to"] == note.data["to"]
|
||
|
assert result["content"] == note.data["content"]
|
||
|
assert result["type"] == "Note"
|
||
|
end
|
||
|
end
|