From: Lain Iwakura Date: Tue, 5 Dec 2017 11:18:04 +0000 (+0100) Subject: Fix tests. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e7c2472abd470b3b0ba8e9321a378e5a77412e26;p=akkoma Fix tests. --- diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index d12ade132..90d0fa654 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -22,7 +22,8 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do |> with_credentials(user.nickname, "test") |> post("/api/account/verify_credentials.json") - assert json_response(conn, 200) == UserView.render("show.json", %{user: user}) + assert response = json_response(conn, 200) + assert response == UserView.render("show.json", %{user: user, token: response["token"]}) end end