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"]
|
||||
end
|
||||
|
||||
# scope "/", FreediveWeb do
|
||||
# pipe_through :browser
|
||||
scope "/", FreediveWeb do
|
||||
pipe_through :browser
|
||||
|
||||
# get "/", PageController, :home
|
||||
# end
|
||||
get "/", PageController, :home
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
# scope "/api", FreediveWeb do
|
||||
|
@ -64,7 +64,7 @@ defmodule FreediveWeb.Router do
|
|||
scope "/", FreediveWeb do
|
||||
pipe_through [:browser, :require_authenticated_user]
|
||||
|
||||
get "/", PageController, :home
|
||||
# get "/", PageController, :home
|
||||
|
||||
live_session :require_authenticated_user,
|
||||
on_mount: [{FreediveWeb.UserAuth, :ensure_authenticated}] do
|
||||
|
|
|
@ -3,6 +3,6 @@ defmodule FreediveWeb.PageControllerTest do
|
|||
|
||||
test "GET /", %{conn: conn} do
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue