projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb3ba0
)
Make specs less breaky.
author
Roger Braun
<roger@rogerbraun.net>
Tue, 30 Jan 2018 11:20:14 +0000
(12:20 +0100)
committer
Roger Braun
<roger@rogerbraun.net>
Tue, 30 Jan 2018 11:20:14 +0000
(12:20 +0100)
test/notification_test.exs
patch
|
blob
|
history
diff --git
a/test/notification_test.exs
b/test/notification_test.exs
index eee1c9fa38c0cb6d26847cb353cfa84759ae239a..0a44622416d3e000b5e7ef67728e7d02c83492a3 100644
(file)
--- 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