WIP
This commit is contained in:
parent
617c2ab725
commit
c451662178
17 changed files with 602 additions and 2 deletions
20
test/support/fixtures/payment_links_fixtures.ex
Normal file
20
test/support/fixtures/payment_links_fixtures.ex
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
defmodule CampApi.PaymentLinksFixtures do
|
||||
@moduledoc """
|
||||
This module defines test helpers for creating
|
||||
entities via the `CampApi.PaymentLinks` context.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Generate a link.
|
||||
"""
|
||||
def link_fixture(attrs \\ %{}) do
|
||||
{:ok, link} =
|
||||
attrs
|
||||
|> Enum.into(%{
|
||||
price: "some price"
|
||||
})
|
||||
|> CampApi.PaymentLinks.create_link()
|
||||
|
||||
link
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue