cannery/test/cannery_web/controllers/home_controller_test.exs

15 lines
281 B
Elixir
Raw Permalink 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
"""
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
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Cannery"
end
end