diff --git a/test/atomic_web/controllers/user_session_controller_test.exs b/test/atomic_web/controllers/user_session_controller_test.exs index 453635d0d..d90e402f8 100644 --- a/test/atomic_web/controllers/user_session_controller_test.exs +++ b/test/atomic_web/controllers/user_session_controller_test.exs @@ -82,14 +82,14 @@ defmodule AtomicWeb.UserSessionControllerTest do describe "DELETE /users/log_out" do test "logs the user out", %{conn: conn, user: user} do - conn = conn |> log_in_user(user) |> delete(Routes.user_session_path(conn, :delete)) + conn = conn |> log_in_user(user) |> get(Routes.user_session_path(conn, :delete)) assert redirected_to(conn) == "/users/log_in" refute get_session(conn, :user_token) assert Phoenix.Flash.get(conn.assigns.flash, :info) =~ "Logged out successfully" end test "succeeds even if the user is not logged in", %{conn: conn} do - conn = delete(conn, Routes.user_session_path(conn, :delete)) + conn = get(conn, Routes.user_session_path(conn, :delete)) assert redirected_to(conn) == "/users/log_in" refute get_session(conn, :user_token) end