My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
415 B

defmodule Mirage.NoteFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Mirage.Notes` context.
"""
@create_attrs %{content: "some content", title: "some title", topic_string: "some tag"}
def fixture(:note) do
{:ok, note} = Mirage.Notes.create_note(@create_attrs)
note
end
def create_note(_) do
note = fixture(:note)
%{note: note}
end
end