Update the Links.create_one to support options for the generator.
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-05 12:10:27 +03:00
parent 8ddb7da76e
commit 74136c7fa7
2 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ defmodule LinkShortener.LinksTest do
test "create_one/2 with valid data creates a link", %{user: user} do
assert {:ok, %Link{} = link} =
with_user(@create_generated_attrs, user)
|> Links.create_one(5)
|> Links.create_one(length: 5)
assert link.name == "some link name"
assert link.url == "https://gitlab.com/KKlochko/link_shortener"