Fix follow test semantics.
authoreal <eal@waifu.club>
Sun, 29 Oct 2017 12:25:11 +0000 (14:25 +0200)
committereal <eal@waifu.club>
Sun, 29 Oct 2017 12:25:11 +0000 (14:25 +0200)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 4e5dc963f62f9d9313f7a3ae57cac58588a45510..acdb08ac246f8c4deb9887c024596fcd434eb887 100644 (file)
@@ -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