update
This commit is contained in:
parent
e2967f68b2
commit
ef2a6c41b4
39 changed files with 2349 additions and 30 deletions
20
test/support/fixtures/images_fixtures.ex
Normal file
20
test/support/fixtures/images_fixtures.ex
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
defmodule Zoeyscomputer.ImagesFixtures do
|
||||
@moduledoc """
|
||||
This module defines test helpers for creating
|
||||
entities via the `Zoeyscomputer.Images` context.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Generate a image.
|
||||
"""
|
||||
def image_fixture(attrs \\ %{}) do
|
||||
{:ok, image} =
|
||||
attrs
|
||||
|> Enum.into(%{
|
||||
file: "some file"
|
||||
})
|
||||
|> Zoeyscomputer.Images.create_image()
|
||||
|
||||
image
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue