2021-09-10 00:28:53 -04:00
|
|
|
defmodule CanneryWeb.HomeControllerTest do
|
2022-02-16 20:59:27 -05:00
|
|
|
@moduledoc """
|
|
|
|
Tests the home page
|
|
|
|
"""
|
|
|
|
|
2021-09-10 00:28:53 -04:00
|
|
|
use CanneryWeb.ConnCase
|
|
|
|
|
2022-02-16 20:59:27 -05:00
|
|
|
@moduletag :home_controller_test
|
|
|
|
|
2021-09-10 00:28:53 -04:00
|
|
|
test "GET /", %{conn: conn} do
|
2023-04-14 23:34:11 -04:00
|
|
|
conn = get(conn, ~p"/")
|
2021-09-10 00:28:53 -04:00
|
|
|
assert html_response(conn, 200) =~ "Welcome to Cannery"
|
|
|
|
end
|
|
|
|
end
|