summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-13 09:48:56 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-13 09:48:56 +0100
commit083cd169d21b0f20332eac80b4481adb41810a64 (patch)
tree5046ff4c441ac22d2a389110376ec6c2dfefc045 /test
parent5fc6e9d467f69af155627cccaa27616fe7ffc61f (diff)
downloadpleroma-083cd169d21b0f20332eac80b4481adb41810a64.tar.gz
pleroma-083cd169d21b0f20332eac80b4481adb41810a64.zip
MastoAPI: Fix repeat api bug.
Documentation was wrong, reblogging actually returns the reblog, not the reblogged status.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index f506d56a1..25d92d010 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -200,7 +200,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> assign(:user, user)
|> post("/api/v1/statuses/#{activity.id}/reblog")
- assert %{"id" => id, "reblogged" => true, "reblogs_count" => 1} = json_response(conn, 200)
+ assert %{"reblog" => %{"id" => id, "reblogged" => true, "reblogs_count" => 1}} = json_response(conn, 200)
assert to_string(activity.id) == id
end
end