aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-04-02 19:38:39 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-04-02 19:38:39 +0300
commit3fa51f72728255fbe287bb307ab38d563e5611b4 (patch)
tree89da8c8cd8ef5db3c8be2a769cb6273b0bba27d7 /test
parent98b96e45ababecb7554232787968f2f326f24e54 (diff)
parentaa78325117c879ecb7ec76383c239078275adbd9 (diff)
downloadpleroma-3fa51f72728255fbe287bb307ab38d563e5611b4.tar.gz
Merge remote-tracking branch 'remotes/origin/2323-accounts-relationships-hotfix' into output-of-relationships-in-statuses
# Conflicts: # lib/pleroma/web/mastodon_api/views/account_view.ex # lib/pleroma/web/mastodon_api/views/status_view.ex
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/views/account_view_test.exs3
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 %{