summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-04-02 19:23:30 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-04-02 19:23:30 +0300
commitaa78325117c879ecb7ec76383c239078275adbd9 (patch)
treea9f9479fc3bbdcea236e25eefcc2a41d71030bd9 /test
parentfd932b14a7e7335a91a2acc2d6dd6fba7e2e90b3 (diff)
downloadpleroma-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.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 %{