pass home controller test

This commit is contained in:
shibao 2022-02-16 20:59:27 -05:00
parent b319f5640a
commit a720e7da3f
3 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,6 @@ defmodule Cannery.ContainersTest do
""" """
use Cannery.DataCase use Cannery.DataCase
alias Cannery.Containers alias Cannery.Containers
alias Cannery.{Accounts.User, Containers.Container} alias Cannery.{Accounts.User, Containers.Container}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -4,7 +4,6 @@ defmodule Cannery.InvitesTest do
""" """
use Cannery.DataCase use Cannery.DataCase
alias Cannery.{Invites, Invites.Invite} alias Cannery.{Invites, Invites.Invite}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -1,6 +1,12 @@
defmodule CanneryWeb.HomeControllerTest do defmodule CanneryWeb.HomeControllerTest do
@moduledoc """
Tests the home page
"""
use CanneryWeb.ConnCase use CanneryWeb.ConnCase
@moduletag :home_controller_test
test "GET /", %{conn: conn} do test "GET /", %{conn: conn} do
conn = get(conn, "/") conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Cannery" assert html_response(conn, 200) =~ "Welcome to Cannery"