X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Ffeed%2Ftag_controller_test.exs;h=a56a1873828b04f44b8d23887fa670b9d82a136e;hb=c9f45edeac2cc3ed262bb4b30dc7e1120c6fa047;hp=efc5880704668633c4df30e5c8d20e1532501de2;hpb=969769730e0b7578ddc6a5cd02f9b24eff5902a0;p=akkoma diff --git a/test/web/feed/tag_controller_test.exs b/test/web/feed/tag_controller_test.exs index efc588070..a56a18738 100644 --- a/test/web/feed/tag_controller_test.exs +++ b/test/web/feed/tag_controller_test.exs @@ -85,5 +85,17 @@ defmodule Pleroma.Web.Feed.TagControllerTest do HtmlEntities.decode(FeedView.activity_content(obj2)), HtmlEntities.decode(FeedView.activity_content(obj1)) ] + + response = + conn + |> put_req_header("content-type", "application/atom+xml") + |> get(tag_feed_path(conn, :feed, "pleromaart")) + |> response(200) + + xml = parse(response) + assert xpath(xml, ~x"//channel/title/text()") == '#pleromaart' + + assert xpath(xml, ~x"//channel/description/text()"s) == + "These are public toots tagged with #pleromaart. You can interact with them if you have an account anywhere in the fediverse." end end