summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/account_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-09 18:41:18 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-13 18:17:08 +0400
commit68a979b8243b9a5b685df2c13388a93b9ede1900 (patch)
tree48dc3a91fd7f2b9724edf93c4c0257f90fe3d81a /test/web/mastodon_api/controllers/account_controller_test.exs
parente4195d4a684908d58482f9c865375a080e7b78bc (diff)
downloadpleroma-68a979b8243b9a5b685df2c13388a93b9ede1900.tar.gz
pleroma-68a979b8243b9a5b685df2c13388a93b9ede1900.zip
Add specs for AccountController.block and AccountController.unblock
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/account_controller_test.exs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs
index 91d4685cb..f71b54ade 100644
--- a/test/web/mastodon_api/controllers/account_controller_test.exs
+++ b/test/web/mastodon_api/controllers/account_controller_test.exs
@@ -819,10 +819,12 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
ret_conn = post(conn, "/api/v1/accounts/#{other_user.id}/block")
assert %{"id" => _id, "blocking" => true} = json_response(ret_conn, 200)
+ assert_schema(json_response(ret_conn, 200), "AccountRelationship", ApiSpec.spec())
conn = post(conn, "/api/v1/accounts/#{other_user.id}/unblock")
assert %{"id" => _id, "blocking" => false} = json_response(conn, 200)
+ assert_schema(json_response(ret_conn, 200), "AccountRelationship", ApiSpec.spec())
end
describe "create account by app" do