memEx/test/memex_web/controllers/home_controller_test.exs

15 lines
275 B
Elixir
Raw Normal View History

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