Use correct URL for tests

This commit is contained in:
Sadposter 2019-07-23 15:31:35 +01:00
parent 452980652d
commit 7026018c8c
1 changed files with 2 additions and 2 deletions

View File

@ -3794,7 +3794,7 @@ test "does not fail on an unauthententicated request", %{conn: conn, activity: a
response = response =
conn conn
|> assign(:user, nil) |> assign(:user, nil)
|> get("/api/v1/#{activity.id}/favourited_by") |> get("/api/v1/statuses/#{activity.id}/favourited_by")
|> json_response(:ok) |> json_response(:ok)
[%{"id" => id}] = response [%{"id" => id}] = response
@ -3865,7 +3865,7 @@ test "does not fail on an unauthententicated request", %{conn: conn, activity: a
response = response =
conn conn
|> assign(:user, nil) |> assign(:user, nil)
|> get("/api/v1/#{activity.id}/reblogged_by") |> get("/api/v1/statuses/#{activity.id}/reblogged_by")
|> json_response(:ok) |> json_response(:ok)
[%{"id" => id}] = response [%{"id" => id}] = response