Skip to content

Commit

Permalink
Add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 committed Jul 12, 2023
1 parent a429018 commit cc01c5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/atomic_web/controllers/page_controller_test.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
defmodule AtomicWeb.PageControllerTest do
use AtomicWeb.ConnCase

test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Listing Activities"
end
end
2 changes: 1 addition & 1 deletion test/atomic_web/controllers/user_auth_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule AtomicWeb.UserAuthTest do
conn =
conn
|> Map.replace!(:secret_key_base, AtomicWeb.Endpoint.config(:secret_key_base))
|> Phoenix.ConnTest.init_test_session(%{})
|> init_test_session(%{})

%{user: insert(:user), conn: conn}
end
Expand Down
1 change: 0 additions & 1 deletion test/support/factories/accounts_factory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ defmodule Atomic.Factories.AccountFactory do

def user_factory do
%User{
id: Faker.UUID.v4(),
name: Faker.Person.name(),
email: Faker.Internet.email(),
role: Enum.random(@roles),
Expand Down

0 comments on commit cc01c5f

Please sign in to comment.