update tests
authorMaksim Pechnikov <parallel588@gmail.com>
Mon, 23 Dec 2019 14:12:55 +0000 (17:12 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Mon, 23 Dec 2019 14:12:55 +0000 (17:12 +0300)
test/web/feed/tag_controller_test.exs
test/web/feed/user_controller_test.exs

index e9b58c8cd07c7607cbc97081de188256d4dc07f2..efc5880704668633c4df30e5c8d20e1532501de2 100644 (file)
@@ -49,7 +49,7 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
     response =
       conn
       |> put_req_header("content-type", "application/atom+xml")
-      |> get("/tags/pleromaart.rss")
+      |> get(tag_feed_path(conn, :feed, "pleromaart.rss"))
       |> response(200)
 
     xml = parse(response)
index e4386ff2c81fc056ef6bdeb1f539dc5ca79f7ca6..41cc9e07ee24021aed7fdb258c99c9bf6bcff0be 100644 (file)
@@ -49,7 +49,7 @@ defmodule Pleroma.Web.Feed.UserControllerTest do
     resp =
       conn
       |> put_req_header("content-type", "application/atom+xml")
-      |> get("/users/#{user.nickname}/feed.atom")
+      |> get(user_feed_path(conn, :feed, user.nickname))
       |> response(200)
 
     activity_titles =
@@ -65,7 +65,7 @@ defmodule Pleroma.Web.Feed.UserControllerTest do
     conn =
       conn
       |> put_req_header("content-type", "application/atom+xml")
-      |> get("/users/nonexisting/feed.atom")
+      |> get(user_feed_path(conn, :feed, "nonexisting"))
 
     assert response(conn, 404)
   end
@@ -91,7 +91,7 @@ defmodule Pleroma.Web.Feed.UserControllerTest do
       response =
         conn
         |> put_req_header("accept", "application/xml")
-        |> get("/users/jimm")
+        |> get(user_feed_path(conn, :feed, "jimm"))
         |> response(404)
 
       assert response == ~S({"error":"Not found"})