Return xml notice at /notice path.

This commit is contained in:
Lain Iwakura 2017-11-27 17:24:52 +01:00
commit c680ae581d
3 changed files with 24 additions and 0 deletions

View file

@ -73,6 +73,16 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
assert response(conn, 200)
end
test "gets a notice", %{conn: conn} do
note_activity = insert(:note_activity)
url = "/notice/#{note_activity.id}"
conn = conn
|> get(url)
assert response(conn, 200)
end
end
defmodule Pleroma.Web.OStatusMock do