Skip to content

Commit

Permalink
client_id > auth_client_id (moar tests) #57
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Apr 29, 2020
1 parent 4257656 commit 2e60531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/auth_web/controllers/auth_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =~ "[email protected]"
assert html_response(conn, 302) =~ "http://localhost"
end
Expand Down
2 changes: 1 addition & 1 deletion test/auth_web/controllers/page_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2e60531

Please sign in to comment.