From 1bb3ba02f398ff5ab94a8ddcc038db20b6474c0e Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 30 Jan 2018 12:17:01 +0100 Subject: Fix specs. --- test/web/ostatus/feed_representer_test.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/web/ostatus/feed_representer_test.exs b/test/web/ostatus/feed_representer_test.exs index df5a964e2..e10936366 100644 --- a/test/web/ostatus/feed_representer_test.exs +++ b/test/web/ostatus/feed_representer_test.exs @@ -26,6 +26,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do #{OStatus.feed_path(user)} #{user.nickname}'s timeline #{most_recent_update} + #{User.avatar_url(user)} -- cgit v1.2.3 From 450109460674d914171bd1a1516a2c5faf355a7c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 30 Jan 2018 12:20:14 +0100 Subject: Make specs less breaky. --- test/notification_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/notification_test.exs b/test/notification_test.exs index eee1c9fa3..0a4462241 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -14,9 +14,9 @@ defmodule Pleroma.NotificationTest do {:ok, [notification, other_notification]} = Notification.create_notifications(activity) - assert notification.user_id == other_user.id + notified_ids = Enum.sort([notification.user_id, other_notification.user_id]) + assert notified_ids == [other_user.id, third_user.id] assert notification.activity_id == activity.id - assert other_notification.user_id == third_user.id assert other_notification.activity_id == activity.id end end -- cgit v1.2.3