summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/views
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-13 09:34:30 +0000
committerlain <lain@soykaf.club>2020-05-13 09:34:30 +0000
commit156c8a508846bd6d4e55f666c4ecc6f0129ac5fc (patch)
tree971b1b30e5faec06b9971d1f08df20bc95ce8051 /test/web/activity_pub/views
parent1307d6ca3ca4ebe1ad49ef5c018fb28c2eb44fee (diff)
parent79ad12064dfd31f135763bae1523a94c493b6aed (diff)
downloadpleroma-156c8a508846bd6d4e55f666c4ecc6f0129ac5fc.tar.gz
pleroma-156c8a508846bd6d4e55f666c4ecc6f0129ac5fc.zip
Merge branch 'openapi/statuses' into 'develop'
Add OpenAPI spec for StatusController See merge request pleroma/pleroma!2521
Diffstat (limited to 'test/web/activity_pub/views')
-rw-r--r--test/web/activity_pub/views/object_view_test.exs2
-rw-r--r--test/web/activity_pub/views/user_view_test.exs2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/views/object_view_test.exs b/test/web/activity_pub/views/object_view_test.exs
index 6c006206b..43f0617f0 100644
--- a/test/web/activity_pub/views/object_view_test.exs
+++ b/test/web/activity_pub/views/object_view_test.exs
@@ -44,7 +44,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
activity = insert(:note_activity, user: user)
{:ok, self_reply1} =
- CommonAPI.post(user, %{"status" => "self-reply 1", "in_reply_to_status_id" => activity.id})
+ CommonAPI.post(user, %{status: "self-reply 1", in_reply_to_status_id: activity.id})
replies_uris = [self_reply1.object.data["id"]]
result = ObjectView.render("object.json", %{object: refresh_record(activity)})
diff --git a/test/web/activity_pub/views/user_view_test.exs b/test/web/activity_pub/views/user_view_test.exs
index 8d00893a5..20b0f223c 100644
--- a/test/web/activity_pub/views/user_view_test.exs
+++ b/test/web/activity_pub/views/user_view_test.exs
@@ -164,7 +164,7 @@ defmodule Pleroma.Web.ActivityPub.UserViewTest do
posts =
for i <- 0..25 do
- {:ok, activity} = CommonAPI.post(user, %{"status" => "post #{i}"})
+ {:ok, activity} = CommonAPI.post(user, %{status: "post #{i}"})
activity
end