aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-07-23 13:57:22 -0500
committerMark Felder <feld@FreeBSD.org>2019-07-23 13:57:22 -0500
commitec7b085b76996bee7eaa60c21b9d8a0cba382a65 (patch)
tree750c4aa849a10de9c6fde6a6e51b773db06ae6e2
parent6a79bb12c38bce6287b29c79c1ad3b7f9b967b69 (diff)
downloadpleroma-ec7b085b76996bee7eaa60c21b9d8a0cba382a65.tar.gz
Fix test
-rw-r--r--test/notification_test.exs8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 06f0b6557..28f8df49d 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -52,13 +52,17 @@ defmodule Pleroma.NotificationTest do
{:ok, activity} = CommonAPI.post(user, %{"status" => "test post"})
- {:ok, reply_activity} =
+ {:ok, _reply_activity} =
CommonAPI.post(other_user, %{
"status" => "test reply",
"in_reply_to_status_id" => activity.id
})
- refute Notification.create_notification(reply_activity, subscriber)
+ user_notifications = Notification.for_user(user)
+ assert length(user_notifications) == 1
+
+ subscriber_notifications = Notification.for_user(subscriber)
+ assert Enum.empty?(subscriber_notifications)
end
end