this is a really good first commit
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
Reference in New Issue
Block a user