2023-02-25 15:47:37 -05:00
|
|
|
defmodule CanneryWeb.HomeControllerTest do
|
2022-02-25 21:53:15 -05:00
|
|
|
@moduledoc """
|
|
|
|
Tests the home page
|
|
|
|
"""
|
|
|
|
|
2023-02-25 15:47:37 -05:00
|
|
|
use CanneryWeb.ConnCase
|
2022-02-25 21:53:15 -05:00
|
|
|
|
|
|
|
@moduletag :home_controller_test
|
|
|
|
|
|
|
|
test "GET /", %{conn: conn} do
|
|
|
|
conn = get(conn, "/")
|
2023-02-25 15:47:37 -05:00
|
|
|
assert html_response(conn, 200) =~ "Welcome to Cannery"
|
2022-02-25 21:53:15 -05:00
|
|
|
end
|
|
|
|
end
|