Update the Links.create_one to support options for the generator.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user