mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-13 00:14:33 +08:00
12 lines
342 B
Elixir
12 lines
342 B
Elixir
defmodule LivebookWeb.UserControllerTest do
|
|
use LivebookWeb.ConnCase, async: true
|
|
|
|
describe "GET /logout" do
|
|
test "redirects when already logged out", %{conn: conn} do
|
|
assert conn
|
|
|> Phoenix.ConnTest.init_test_session(%{})
|
|
|> get(~p"/logout")
|
|
|> redirected_to() == ~p"/"
|
|
end
|
|
end
|
|
end
|