medicode / test /medicode_web /controllers /page_controller_test.exs
timgremore's picture
fix: Rename directories and main context files
6488653
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