summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/util_controller_test.exs
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-05-28 10:16:09 -0500
committerMark Felder <feld@FreeBSD.org>2020-05-28 10:16:09 -0500
commit9eea80002673eb1359a2d4369c65a89c42c2f707 (patch)
tree9be8d8041606909c9374e8fb323cf089d918f282 /test/web/twitter_api/util_controller_test.exs
parent089d72d2e6bb1f3c3674162c5c9a7c4988241358 (diff)
downloadpleroma-9eea80002673eb1359a2d4369c65a89c42c2f707.tar.gz
pleroma-9eea80002673eb1359a2d4369c65a89c42c2f707.zip
Refactor notification settings
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r--test/web/twitter_api/util_controller_test.exs16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs
index ad919d341..1133107f4 100644
--- a/test/web/twitter_api/util_controller_test.exs
+++ b/test/web/twitter_api/util_controller_test.exs
@@ -191,7 +191,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
test "it updates notification settings", %{user: user, conn: conn} do
conn
|> put("/api/pleroma/notification_settings", %{
- "followers" => false,
+ "from_followers" => false,
"bar" => 1
})
|> json_response(:ok)
@@ -199,10 +199,9 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
user = refresh_record(user)
assert %Pleroma.User.NotificationSetting{
- followers: false,
- follows: true,
- non_follows: true,
- non_followers: true,
+ from_followers: false,
+ from_following: true,
+ from_strangers: true,
privacy_option: false
} == user.notification_settings
end
@@ -215,10 +214,9 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
user = refresh_record(user)
assert %Pleroma.User.NotificationSetting{
- followers: true,
- follows: true,
- non_follows: true,
- non_followers: true,
+ from_followers: true,
+ from_following: true,
+ from_strangers: true,
privacy_option: true
} == user.notification_settings
end