diff options
author | Lain Iwakura <lain@soykaf.club> | 2017-11-27 17:24:52 +0100 |
---|---|---|
committer | Lain Iwakura <lain@soykaf.club> | 2017-11-27 17:24:52 +0100 |
commit | c680ae581d028144ebea414b4137433ac7ca8e6a (patch) | |
tree | acbd95e8ab4c48332fbff75edf2b051be255639a /test | |
parent | 89a8dc748525063afc673e49875d0b605df73d77 (diff) | |
download | pleroma-c680ae581d028144ebea414b4137433ac7ca8e6a.tar.gz pleroma-c680ae581d028144ebea414b4137433ac7ca8e6a.zip |
Return xml notice at /notice path.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/ostatus_controller_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_controller_test.exs b/test/web/ostatus/ostatus_controller_test.exs index 20d17d41f..9c945e35b 100644 --- a/test/web/ostatus/ostatus_controller_test.exs +++ b/test/web/ostatus/ostatus_controller_test.exs @@ -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 |