aboutsummaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-03 08:23:31 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-03 08:23:31 +0100
commit33beb51da423f5f80311453ad9025aa66984eb12 (patch)
tree1760e2b3210f919f414702c2517eed49cd12a416 /test/web/mastodon_api
parent9b63647aff337d8510dd7fc3ad838a365baa480f (diff)
downloadpleroma-33beb51da423f5f80311453ad9025aa66984eb12.tar.gz
MastoAPI: Add blocking to AccountView.
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/account_view_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs
index aa74ed966..c62cb4f36 100644
--- a/test/web/mastodon_api/account_view_test.exs
+++ b/test/web/mastodon_api/account_view_test.exs
@@ -51,12 +51,13 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
other_user = insert(:user)
{:ok, user} = User.follow(user, other_user)
+ {:ok, user} = User.block(user, other_user)
expected = %{
id: other_user.id,
following: true,
followed_by: false,
- blocking: false,
+ blocking: true,
muting: false,
requested: false,
domain_blocking: false