From 2e60531edec42c048902834df63487a277a7e1e3 Mon Sep 17 00:00:00 2001 From: nelsonic Date: Wed, 29 Apr 2020 17:28:55 +0100 Subject: [PATCH] client_id > auth_client_id (moar tests) #57 --- test/auth_web/controllers/auth_controller_test.exs | 2 +- test/auth_web/controllers/page_controller_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/auth_web/controllers/auth_controller_test.exs b/test/auth_web/controllers/auth_controller_test.exs index 05ce34d1..ac0f5621 100644 --- a/test/auth_web/controllers/auth_controller_test.exs +++ b/test/auth_web/controllers/auth_controller_test.exs @@ -5,7 +5,7 @@ defmodule AuthWeb.AuthControllerTest do test "github_handler/2 github auth callback", %{conn: conn} do conn = get(conn, "/auth/github/callback", %{code: "123", state: "http://localhost:4000/" <> - "&client_id=" <> AuthPlug.Token.client_id() }) + "&auth_client_id=" <> AuthPlug.Token.client_id() }) # assert html_response(conn, 200) =~ "test@gmail.com" assert html_response(conn, 302) =~ "http://localhost" end diff --git a/test/auth_web/controllers/page_controller_test.exs b/test/auth_web/controllers/page_controller_test.exs index 1cd011ea..072cda87 100644 --- a/test/auth_web/controllers/page_controller_test.exs +++ b/test/auth_web/controllers/page_controller_test.exs @@ -23,7 +23,7 @@ defmodule AuthWeb.PageControllerTest do test "get_referer/1 query_string", %{conn: conn} do conn = conn |> get("/?referer=" <> URI.encode("http://localhost/admin") - <> "&client_id=" <> AuthPlug.Token.client_id() + <> "&auth_client_id=" <> AuthPlug.Token.client_id() ) assert conn.resp_body =~ "state=http://localhost/admin"