this is a really good first commit

This commit is contained in:
2023-01-18 16:13:51 +01:00
parent 6bc40e339a
commit be71f04838
117 changed files with 2972 additions and 3100 deletions

View File

@ -19,15 +19,15 @@ defmodule SomethingErlangWeb.ConnCase do
using do
quote do
# The default endpoint for testing
@endpoint SomethingErlangWeb.Endpoint
use SomethingErlangWeb, :verified_routes
# Import conveniences for testing with connections
import Plug.Conn
import Phoenix.ConnTest
import SomethingErlangWeb.ConnCase
alias SomethingErlangWeb.Router.Helpers, as: Routes
# The default endpoint for testing
@endpoint SomethingErlangWeb.Endpoint
end
end

View File

@ -1,21 +0,0 @@
defmodule SomethingErlang.ForumsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `SomethingErlang.Forums` context.
"""
@doc """
Generate a thread.
"""
def thread_fixture(attrs \\ %{}) do
{:ok, thread} =
attrs
|> Enum.into(%{
thread_id: 42,
title: "some title"
})
|> SomethingErlang.Forums.create_thread()
thread
end
end