diff options
author | lain <lain@soykaf.club> | 2019-10-25 17:08:01 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-10-25 17:08:01 +0000 |
commit | a43b899e94c499a9b5cb1a072fe4b96f0f02696f (patch) | |
tree | 82488bc1f7dd70959a879f2e42760fe1c23ee309 /test/notification_test.exs | |
parent | 9b26d1608f5ddd64a146dec3c41b029c1b7a4198 (diff) | |
parent | 948d0d3b0b2a2eb72a0db41abebd9ad976dfdbf7 (diff) | |
download | pleroma-1.1.3.tar.gz |
Merge branch 'release/1.1.3' into 'stable'v1.1.3
1.1.3 release
See merge request pleroma/pleroma!1884
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index d68d4485f..2480d9b20 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -680,7 +680,7 @@ defmodule Pleroma.NotificationTest do assert Notification.for_user(user) == [] end - test "it returns notifications for muted user with notifications and with_muted parameter" do + test "it returns notifications from a muted user when with_muted is set" do user = insert(:user) muted = insert(:user) {:ok, user} = User.mute(user, muted) @@ -690,27 +690,27 @@ defmodule Pleroma.NotificationTest do assert length(Notification.for_user(user, %{with_muted: true})) == 1 end - test "it returns notifications for blocked user and with_muted parameter" do + test "it doesn't return notifications from a blocked user when with_muted is set" do user = insert(:user) blocked = insert(:user) {:ok, user} = User.block(user, blocked) {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) - assert length(Notification.for_user(user, %{with_muted: true})) == 1 + assert length(Notification.for_user(user, %{with_muted: true})) == 0 end - test "it returns notificatitons for blocked domain and with_muted parameter" do + test "it doesn't return notifications from a domain-blocked user when with_muted is set" do user = insert(:user) blocked = insert(:user, ap_id: "http://some-domain.com") {:ok, user} = User.block_domain(user, "some-domain.com") {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) - assert length(Notification.for_user(user, %{with_muted: true})) == 1 + assert length(Notification.for_user(user, %{with_muted: true})) == 0 end - test "it returns notifications for muted thread with_muted parameter" do + test "it returns notifications from muted threads when with_muted is set" do user = insert(:user) another_user = insert(:user) |