This commit is contained in:
parent
ba2294f156
commit
776d8a0250
2
mix.exs
2
mix.exs
@ -12,7 +12,7 @@ defmodule Cannery.MixProject do
|
|||||||
aliases: aliases(),
|
aliases: aliases(),
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
dialyzer: [plt_add_apps: [:ex_unit]],
|
dialyzer: [plt_add_apps: [:ex_unit]],
|
||||||
|
consolidate_protocols: Mix.env() not in [:dev, :test],
|
||||||
# ExDoc
|
# ExDoc
|
||||||
name: "Cannery",
|
name: "Cannery",
|
||||||
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||||
|
@ -4,7 +4,7 @@ defmodule Cannery.AmmoTest do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use Cannery.DataCase
|
use Cannery.DataCase
|
||||||
alias Cannery.{Ammo, Ammo.AmmoType, Ammo.AmmoGroup}
|
alias Cannery.{Ammo, Ammo.AmmoGroup, Ammo.AmmoType}
|
||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
|
|
||||||
@moduletag :ammo_test
|
@moduletag :ammo_test
|
||||||
|
@ -17,7 +17,7 @@ defmodule CanneryWeb.ConnCase do
|
|||||||
|
|
||||||
use ExUnit.CaseTemplate
|
use ExUnit.CaseTemplate
|
||||||
import Cannery.Fixtures
|
import Cannery.Fixtures
|
||||||
alias Cannery.{Accounts, Repo}
|
alias Cannery.{Accounts, Accounts.User, Repo}
|
||||||
alias Ecto.Adapters.SQL.Sandbox
|
alias Ecto.Adapters.SQL.Sandbox
|
||||||
|
|
||||||
using do
|
using do
|
||||||
|
@ -58,7 +58,7 @@ defmodule Cannery.Fixtures do
|
|||||||
|
|
||||||
[_, html_token, _] = email.html_body |> String.split("[TOKEN]")
|
[_, html_token, _] = email.html_body |> String.split("[TOKEN]")
|
||||||
[_, text_token, _] = email.text_body |> String.split("[TOKEN]")
|
[_, text_token, _] = email.text_body |> String.split("[TOKEN]")
|
||||||
text_token = html_token
|
^text_token = html_token
|
||||||
end
|
end
|
||||||
|
|
||||||
def valid_user_attributes(attrs \\ %{}) do
|
def valid_user_attributes(attrs \\ %{}) do
|
||||||
|
Loading…
Reference in New Issue
Block a user