From 954cdf185c663d09c30cdb4d1e10e13cb6fd170e Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 16 Feb 2022 21:12:04 -0500 Subject: [PATCH] pass user session controller test --- .../controllers/user_session_controller_test.exs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/cannery_web/controllers/user_session_controller_test.exs b/test/cannery_web/controllers/user_session_controller_test.exs index c2b4a4b..a16de57 100644 --- a/test/cannery_web/controllers/user_session_controller_test.exs +++ b/test/cannery_web/controllers/user_session_controller_test.exs @@ -1,9 +1,12 @@ defmodule CanneryWeb.UserSessionControllerTest do + @moduledoc """ + Tests the user session controller + """ + use CanneryWeb.ConnCase, async: true import CanneryWeb.Gettext - import Cannery.AccountsFixtures - @moduletag :user_session_controller + @moduletag :user_session_controller_test setup do %{user: user_fixture()} @@ -14,7 +17,6 @@ defmodule CanneryWeb.UserSessionControllerTest do conn = get(conn, Routes.user_session_path(conn, :new)) response = html_response(conn, 200) assert response =~ dgettext("actions", "Log in") - assert response =~ dgettext("actions", "Register") end test "redirects if already logged in", %{conn: conn, user: user} do