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

  1. defmodule Mirage.NoteFixtures do
  2. @moduledoc """
  3. This module defines test helpers for creating
  4. entities via the `Mirage.Notes` context.
  5. """
  6. @create_attrs %{content: "some content", title: "some title", topic_string: "some tag"}
  7. def fixture(:note) do
  8. {:ok, note} = Mirage.Notes.create_note(@create_attrs)
  9. note
  10. end
  11. def create_note(_) do
  12. note = fixture(:note)
  13. %{note: note}
  14. end
  15. end