Apply suggestion to test/web/pleroma_api/subscription_notification_controller_test.exs
authorRoman Chvanikov <chvanikoff@pm.me>
Tue, 17 Sep 2019 13:43:15 +0000 (13:43 +0000)
committerRoman Chvanikov <chvanikoff@pm.me>
Tue, 17 Sep 2019 13:43:15 +0000 (13:43 +0000)
test/web/pleroma_api/subscription_notification_controller_test.exs

index ee495f112a486a42580f27573b33932cac98c5bb..781d27ead6e5fcee58c78afa03cdadd055809d16 100644 (file)
@@ -50,7 +50,7 @@ defmodule Pleroma.Web.PleromaAPI.SubscriptionNotificationControllerTest do
       {:ok, _activity} = CommonAPI.post(user, %{"status" => status_text})
       [notification] = Repo.all(SubscriptionNotification)
 
-      path = subscription_notification_path(conn, :get, id: notification.id)
+      path = subscription_notification_path(conn, :get, notification)
 
       conn =
         conn