After "mix phx.gen.json BiddingRounds BiddingRound bidding_rounds round_number:integer running:boolean --no-scope".
This commit is contained in:
21
test/support/fixtures/bidding_rounds_fixtures.ex
Normal file
21
test/support/fixtures/bidding_rounds_fixtures.ex
Normal file
@ -0,0 +1,21 @@
|
||||
defmodule BeetRoundServer.BiddingRoundsFixtures do
|
||||
@moduledoc """
|
||||
This module defines test helpers for creating
|
||||
entities via the `BeetRoundServer.BiddingRounds` context.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Generate a bidding_round.
|
||||
"""
|
||||
def bidding_round_fixture(attrs \\ %{}) do
|
||||
{:ok, bidding_round} =
|
||||
attrs
|
||||
|> Enum.into(%{
|
||||
round_number: 42,
|
||||
running: true
|
||||
})
|
||||
|> BeetRoundServer.BiddingRounds.create_bidding_round()
|
||||
|
||||
bidding_round
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user