cannery/test/cannery_web/controllers/home_controller_test.exs

15 lines
296 B
Elixir
Raw Normal View History

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
"""
2023-04-14 23:48:50 -04:00
use CanneryWeb.ConnCase, async: true
2021-09-10 00:28:53 -04:00
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