467 B · text 5af55d9
defmodule GitGudWeb.PageControllerTest do
use GitGudWeb.ConnCase
test "GET / renders the forge landing page", %{conn: conn} do
html = conn |> get(~p"/") |> html_response(200)
assert html =~ "GITGUD"
assert html =~ "Self-hosted code forge"
assert html =~ "Browse repositories"
end
test "anonymous landing shows Register CTA", %{conn: conn} do
html = conn |> get(~p"/") |> html_response(200)
assert html =~ "Get an account"
end
end