Format subscriptions related stuff

This commit is contained in:
Sadposter 2019-04-05 15:22:48 +01:00 committed by Hannah Ward
parent d56866c824
commit 06cd547fc6
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,6 @@ test "notifies someone when they are directly addressed" do
assert other_notification.activity_id == activity.id assert other_notification.activity_id == activity.id
end end
test "it creates a notification for subscribed users" do test "it creates a notification for subscribed users" do
user = insert(:user) user = insert(:user)
subscriber = insert(:user) subscriber = insert(:user)
@ -38,7 +37,7 @@ test "it creates a notification for subscribed users" do
{:ok, _, _} = TwitterAPI.subscribe(subscriber, %{"user_id" => user.id}) {:ok, _, _} = TwitterAPI.subscribe(subscriber, %{"user_id" => user.id})
{:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"}) {:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"})
{:ok, [notification]} = Notification.create_notifications(status) {:ok, [notification]} = Notification.create_notifications(status)
assert notification.user_id == subscriber.id assert notification.user_id == subscriber.id
end end
end end

View File

@ -155,7 +155,7 @@ test "A user for a given other follower", %{user: user} do
"pleroma" => %{ "pleroma" => %{
"confirmation_pending" => false, "confirmation_pending" => false,
"tags" => [], "tags" => [],
"subscribed" => false, "subscribed" => false
} }
} }