sign in user for note and channel tests
This commit is contained in:
parent
62b118afe7
commit
25abbf3f16
|
@ -17,6 +17,8 @@ defmodule ChiyaWeb.ChannelControllerTest do
|
|||
}
|
||||
@invalid_attrs %{content: nil, name: nil, slug: nil, visibility: nil}
|
||||
|
||||
setup [:register_and_log_in_user]
|
||||
|
||||
describe "index" do
|
||||
test "lists all channels", %{conn: conn} do
|
||||
conn = get(conn, ~p"/admin/channels")
|
||||
|
|
|
@ -21,6 +21,8 @@ defmodule ChiyaWeb.NoteControllerTest do
|
|||
}
|
||||
@invalid_attrs %{content: nil, kind: nil, name: nil, published_at: nil, slug: nil, url: nil}
|
||||
|
||||
setup [:register_and_log_in_user]
|
||||
|
||||
describe "index" do
|
||||
test "lists all notes", %{conn: conn} do
|
||||
conn = get(conn, ~p"/admin/notes")
|
||||
|
|
Loading…
Reference in New Issue