summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/util_controller_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-06-04 09:49:08 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-06-04 09:49:08 +0300
commit4f2e359687b8866a26130314315415a787678881 (patch)
tree51e29be10335dab73962952c2f1b0407cbd52ecb /test/web/twitter_api/util_controller_test.exs
parent64ada7f960eb45d5e06d431c0c27be1014106ff9 (diff)
parent0f8f63c6bb4a26615277f43ed4f30f032d71df83 (diff)
downloadpleroma-4f2e359687b8866a26130314315415a787678881.tar.gz
pleroma-4f2e359687b8866a26130314315415a787678881.zip
Merge branch 'develop' into issue/941
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r--test/web/twitter_api/util_controller_test.exs9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs
index 2cd82b3e7..cab9e5d90 100644
--- a/test/web/twitter_api/util_controller_test.exs
+++ b/test/web/twitter_api/util_controller_test.exs
@@ -102,7 +102,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
conn
|> assign(:user, user)
|> put("/api/pleroma/notification_settings", %{
- "remote" => false,
"followers" => false,
"bar" => 1
})
@@ -110,8 +109,12 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
user = Repo.get(User, user.id)
- assert %{"remote" => false, "local" => true, "followers" => false, "follows" => true} ==
- user.info.notification_settings
+ assert %{
+ "followers" => false,
+ "follows" => true,
+ "non_follows" => true,
+ "non_followers" => true
+ } == user.info.notification_settings
end
end