This commit is contained in:
Mark Felder 2019-07-23 13:57:22 -05:00
parent 6a79bb12c3
commit ec7b085b76
1 changed files with 6 additions and 2 deletions

View File

@ -52,13 +52,17 @@ test "does not create a notification for subscribed users if status is a reply"
{: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