defmodule MedicodeWeb.PageControllerTest do | |
use MedicodeWeb.ConnCase | |
import Medicode.AccountsFixtures | |
setup %{conn: conn} do | |
password = valid_user_password() | |
user = user_fixture(%{password: password}) | |
%{conn: log_in_user(conn, user)} | |
end | |
test "GET /", %{conn: conn} do | |
conn = get(conn, ~p"/") | |
assert html_response(conn, 200) =~ "MediCode" | |
end | |
end | |