diff options
author | eal <eal@waifu.club> | 2017-10-29 14:25:11 +0200 |
---|---|---|
committer | eal <eal@waifu.club> | 2017-10-29 14:25:11 +0200 |
commit | 71f66bd4589faddc35137ed3197f685555b77aaf (patch) | |
tree | 10cae2002d331056d37e56c0e3885183f664099a | |
parent | 2ffc6da20799ac8e7882f5e72d3f37dadc1f2428 (diff) | |
download | pleroma-71f66bd4589faddc35137ed3197f685555b77aaf.tar.gz pleroma-71f66bd4589faddc35137ed3197f685555b77aaf.zip |
Fix follow test semantics.
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 3 |
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 |