test: fix scrobble controller tests
authorAriadne Conill <ariadne@dereferenced.org>
Sun, 29 Sep 2019 00:35:40 +0000 (00:35 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Mon, 30 Sep 2019 10:39:48 +0000 (10:39 +0000)
test/web/pleroma_api/controllers/scrobble_controller_test.exs

index 8cbb5889e1e533e6f17db692a735ce7d6de9599a..b86bd225019aa2f2dd03acd576410c90229c949c 100644 (file)
@@ -26,7 +26,7 @@ defmodule Pleroma.Web.PleromaAPI.ScrobbleControllerTest do
     end
   end
 
-  describe "GET /api/v1/pleroma/accounts/:id/now-playing" do
+  describe "GET /api/v1/pleroma/accounts/:id/scrobbles" do
     test "works correctly", %{conn: conn} do
       user = insert(:user)
 
@@ -53,7 +53,7 @@ defmodule Pleroma.Web.PleromaAPI.ScrobbleControllerTest do
 
       conn =
         conn
-        |> get("/api/v1/pleroma/accounts/#{user.id}/now-playing")
+        |> get("/api/v1/pleroma/accounts/#{user.id}/scrobbles")
 
       result = json_response(conn, 200)