summaryrefslogtreecommitdiff
path: root/test/web/twitter_api
diff options
context:
space:
mode:
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-04-05 16:51:45 +0100
committerHannah Ward <Hannah.ward9001@gmail.com>2019-04-05 17:02:07 +0100
commit9ca91cbb8764ef4f8fe5303705dd98984e4e90c0 (patch)
treef9aaa3397de39f5f68faff29cf09125c2126de32 /test/web/twitter_api
parentd35f6551c1e9b11dec81b622c9ed2d9cdd6ac389 (diff)
downloadpleroma-9ca91cbb8764ef4f8fe5303705dd98984e4e90c0.tar.gz
pleroma-9ca91cbb8764ef4f8fe5303705dd98984e4e90c0.zip
Change relationship direction of subscriptions
Diffstat (limited to 'test/web/twitter_api')
-rw-r--r--test/web/twitter_api/views/user_view_test.exs20
1 files changed, 4 insertions, 16 deletions
diff --git a/test/web/twitter_api/views/user_view_test.exs b/test/web/twitter_api/views/user_view_test.exs
index 69d9c5da5..0feaf4b64 100644
--- a/test/web/twitter_api/views/user_view_test.exs
+++ b/test/web/twitter_api/views/user_view_test.exs
@@ -105,8 +105,7 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"fields" => [],
"pleroma" => %{
"confirmation_pending" => false,
- "tags" => [],
- "subscribed" => false
+ "tags" => []
}
}
@@ -154,8 +153,7 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"fields" => [],
"pleroma" => %{
"confirmation_pending" => false,
- "tags" => [],
- "subscribed" => false
+ "tags" => []
}
}
@@ -204,22 +202,13 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"fields" => [],
"pleroma" => %{
"confirmation_pending" => false,
- "tags" => [],
- "subscribed" => false
+ "tags" => []
}
}
assert represented == UserView.render("show.json", %{user: follower, for: user})
end
- test "a user that you are subscribed to" do
- user = insert(:user)
- subscriber = insert(:user)
- {:ok, subscriber} = User.subscribe(subscriber, user)
- represented = UserView.render("show.json", %{user: user, for: subscriber})
- assert represented["pleroma"]["subscribed"] == true
- end
-
test "a user that is a moderator" do
user = insert(:user, %{info: %{is_moderator: true}})
represented = UserView.render("show.json", %{user: user, for: user})
@@ -299,8 +288,7 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"fields" => [],
"pleroma" => %{
"confirmation_pending" => false,
- "tags" => [],
- "subscribed" => false
+ "tags" => []
}
}