Fix tests.

This commit is contained in:
Lain Iwakura 2017-12-05 12:18:04 +01:00
parent 74e92152b7
commit e7c2472abd

View File

@ -22,7 +22,8 @@ test "with credentials", %{conn: conn, user: user} do
|> with_credentials(user.nickname, "test") |> with_credentials(user.nickname, "test")
|> post("/api/account/verify_credentials.json") |> 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
end end