forked from hiway/freedive
Fix tests
This commit is contained in:
parent
481ed2c7f8
commit
23b2adbe35
2 changed files with 6 additions and 6 deletions
|
@ -17,11 +17,11 @@ defmodule FreediveWeb.Router do
|
||||||
plug :accepts, ["json"]
|
plug :accepts, ["json"]
|
||||||
end
|
end
|
||||||
|
|
||||||
# scope "/", FreediveWeb do
|
scope "/", FreediveWeb do
|
||||||
# pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
# get "/", PageController, :home
|
get "/", PageController, :home
|
||||||
# end
|
end
|
||||||
|
|
||||||
# Other scopes may use custom stacks.
|
# Other scopes may use custom stacks.
|
||||||
# scope "/api", FreediveWeb do
|
# scope "/api", FreediveWeb do
|
||||||
|
@ -64,7 +64,7 @@ defmodule FreediveWeb.Router do
|
||||||
scope "/", FreediveWeb do
|
scope "/", FreediveWeb do
|
||||||
pipe_through [:browser, :require_authenticated_user]
|
pipe_through [:browser, :require_authenticated_user]
|
||||||
|
|
||||||
get "/", PageController, :home
|
# get "/", PageController, :home
|
||||||
|
|
||||||
live_session :require_authenticated_user,
|
live_session :require_authenticated_user,
|
||||||
on_mount: [{FreediveWeb.UserAuth, :ensure_authenticated}] do
|
on_mount: [{FreediveWeb.UserAuth, :ensure_authenticated}] do
|
||||||
|
|
|
@ -3,6 +3,6 @@ defmodule FreediveWeb.PageControllerTest do
|
||||||
|
|
||||||
test "GET /", %{conn: conn} do
|
test "GET /", %{conn: conn} do
|
||||||
conn = get(conn, ~p"/")
|
conn = get(conn, ~p"/")
|
||||||
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
|
assert html_response(conn, 200) =~ "Under Construction"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue