Use correct URL for tests
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>
Tue, 23 Jul 2019 14:31:35 +0000 (15:31 +0100)
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>
Tue, 23 Jul 2019 14:31:35 +0000 (15:31 +0100)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 49650b1de10bf0f1deb4dd6d8da2746736e8547b..28d3f4117ac5f4bd7b1920a53d50ee7c94809bda 100644 (file)
@@ -3794,7 +3794,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
       response =
         conn
         |> assign(:user, nil)
-        |> get("/api/v1/#{activity.id}/favourited_by")
+        |> get("/api/v1/statuses/#{activity.id}/favourited_by")
         |> json_response(:ok)
 
       [%{"id" => id}] = response
@@ -3865,7 +3865,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
       response =
         conn
         |> assign(:user, nil)
-        |> get("/api/v1/#{activity.id}/reblogged_by")
+        |> get("/api/v1/statuses/#{activity.id}/reblogged_by")
         |> json_response(:ok)
 
       [%{"id" => id}] = response