Fix tests.
authorLain Iwakura <lain@soykaf.club>
Tue, 5 Dec 2017 11:18:04 +0000 (12:18 +0100)
committerLain Iwakura <lain@soykaf.club>
Tue, 5 Dec 2017 11:18:04 +0000 (12:18 +0100)
test/web/twitter_api/twitter_api_controller_test.exs

index d12ade1327e56a9509681a46dbcaae4b4900edbe..90d0fa65475c46e2785da116ca428a4826ea32de 100644 (file)
@@ -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