summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-10-29 14:25:11 +0200
committereal <eal@waifu.club>2017-10-29 14:25:11 +0200
commit71f66bd4589faddc35137ed3197f685555b77aaf (patch)
tree10cae2002d331056d37e56c0e3885183f664099a
parent2ffc6da20799ac8e7882f5e72d3f37dadc1f2428 (diff)
downloadpleroma-71f66bd4589faddc35137ed3197f685555b77aaf.tar.gz
pleroma-71f66bd4589faddc35137ed3197f685555b77aaf.zip
Fix follow test semantics.
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs3
1 files changed, 2 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 4e5dc963f..acdb08ac2 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -287,7 +287,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> assign(:user, user)
|> post("/api/v1/follows", %{"uri" => other_user.nickname})
- assert other_user = json_response(conn, 200)
+ assert %{"id" => id} = json_response(conn, 200)
+ assert id == other_user.id
end
test "unimplemented block/mute endpoints" do