diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-02 19:23:30 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-04-02 19:23:30 +0300 |
commit | aa78325117c879ecb7ec76383c239078275adbd9 (patch) | |
tree | a9f9479fc3bbdcea236e25eefcc2a41d71030bd9 /test | |
parent | fd932b14a7e7335a91a2acc2d6dd6fba7e2e90b3 (diff) | |
download | pleroma-aa78325117c879ecb7ec76383c239078275adbd9.tar.gz pleroma-aa78325117c879ecb7ec76383c239078275adbd9.zip |
[#2323] Fixed a typo causing /accounts/relationships to render default relationships. Improved the tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/views/account_view_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs index 8d00e3c21..4435f69ff 100644 --- a/test/web/mastodon_api/views/account_view_test.exs +++ b/test/web/mastodon_api/views/account_view_test.exs @@ -209,6 +209,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do relationships_opt = UserRelationship.view_relationships_option(user, [other_user]) opts = Map.put(opts, :relationships, relationships_opt) assert expected_result == AccountView.render("relationship.json", opts) + + assert [expected_result] == + AccountView.render("relationships.json", %{user: user, targets: [other_user]}) end @blank_response %{ |