Fixtures v0.0.2 Fixtures behaviour View Source

Documentation for Fixtures.

Link to this section Summary

Callbacks

Create a fixture.

Create and then persist a fixture.

Link to this section Functions

Link to this macro

__using__(opts \\ [])

View Source (macro)

Documentation for Fixtures.

Link to this function

create(module, opts \\ [])

View Source
create(module(), Keyword.t()) :: {:ok, struct()} | {:error, term()}
Link to this function

create!(module, opts \\ [])

View Source
create!(module(), Keyword.t()) :: struct() | no_return()
Link to this macro

fixture(model, block)

View Source (macro)

Create a fixture.

Link to this macro

fixture(model, opts, block)

View Source (macro)

Create a fixture.

Link to this function

persist(module, opts \\ [])

View Source
persist(module(), Keyword.t()) :: {:ok, struct()} | {:error, term()}
Link to this function

persist!(module, opts \\ [])

View Source
persist!(module(), Keyword.t()) :: struct() | no_return()

Link to this section Callbacks

Link to this callback

create(arg1)

View Source
create(Keyword.t()) :: {:ok, term()} | {:error, atom()}

Create a fixture.

Link to this callback

persist(arg1)

View Source
persist(Keyword.t()) :: {:ok, term()} | {:error, atom()}

Create and then persist a fixture.