diff options
| author | lain <lain@soykaf.club> | 2020-05-06 11:44:30 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-05-06 11:44:30 +0200 |
| commit | 205313e54146c00374e3edfa951132a7229fa16d (patch) | |
| tree | db392c5ef71a2a40fb8a041635d2536b34dc454d /test/web/mastodon_api/controllers/follow_request_controller_test.exs | |
| parent | 9637cded21cef1e6c531dd46d5f5245c4c3ed03c (diff) | |
| parent | 07e7c80bc9e919cd92ca9dda1e21384142e5bd77 (diff) | |
| download | pleroma-205313e54146c00374e3edfa951132a7229fa16d.tar.gz pleroma-205313e54146c00374e3edfa951132a7229fa16d.zip | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/mastodon_api/controllers/follow_request_controller_test.exs')
| -rw-r--r-- | test/web/mastodon_api/controllers/follow_request_controller_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/follow_request_controller_test.exs b/test/web/mastodon_api/controllers/follow_request_controller_test.exs index d8dbe4800..44e12d15a 100644 --- a/test/web/mastodon_api/controllers/follow_request_controller_test.exs +++ b/test/web/mastodon_api/controllers/follow_request_controller_test.exs @@ -27,7 +27,7 @@ defmodule Pleroma.Web.MastodonAPI.FollowRequestControllerTest do conn = get(conn, "/api/v1/follow_requests") - assert [relationship] = json_response(conn, 200) + assert [relationship] = json_response_and_validate_schema(conn, 200) assert to_string(other_user.id) == relationship["id"] end @@ -44,7 +44,7 @@ defmodule Pleroma.Web.MastodonAPI.FollowRequestControllerTest do conn = post(conn, "/api/v1/follow_requests/#{other_user.id}/authorize") - assert relationship = json_response(conn, 200) + assert relationship = json_response_and_validate_schema(conn, 200) assert to_string(other_user.id) == relationship["id"] user = User.get_cached_by_id(user.id) @@ -62,7 +62,7 @@ defmodule Pleroma.Web.MastodonAPI.FollowRequestControllerTest do conn = post(conn, "/api/v1/follow_requests/#{other_user.id}/reject") - assert relationship = json_response(conn, 200) + assert relationship = json_response_and_validate_schema(conn, 200) assert to_string(other_user.id) == relationship["id"] user = User.get_cached_by_id(user.id) |
