Add the create_user to the UserFactory.

dev
KKlochko 8 months ago
parent 9671d030c4
commit 1b6651bab9

@ -7,4 +7,9 @@ defmodule LinkShortener.Factories.UserFactory do
password: "some password" password: "some password"
} }
end end
def create_user() do
user_attrs_factory()
|> LinkShortener.AccountsFixtures.user_fixture()
end
end end

Loading…
Cancel
Save