mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Need to mock auth
This commit is contained in:
@@ -20,6 +20,9 @@ defmodule FgHttpWeb.DeviceControllerTest do
|
||||
|
||||
describe "index" do
|
||||
test "lists all devices", %{conn: conn} do
|
||||
# Mock authentication
|
||||
conn = Plug.Conn.assign(conn, :current_user, fixture(:user))
|
||||
|
||||
conn = get(conn, Routes.device_path(conn, :index))
|
||||
assert html_response(conn, 200) =~ "Listing Devices"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user