Add the create_user to the UserFactory.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user