Merge remote-tracking branch 'origin/main' into bugfix/harden-env-handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Made-with: Cursor # Conflicts: # test/mv_web/controllers/auth_controller_test.exs
This commit is contained in:
commit
1d3f973410
5 changed files with 51 additions and 28 deletions
|
|
@ -5,12 +5,14 @@ defmodule Mv.MailerTest do
|
|||
Uses Swoosh.Adapters.Test (configured in test.exs); no real SMTP. Asserts
|
||||
success/error contract and that one test email is sent on success.
|
||||
"""
|
||||
use Mv.DataCase, async: true
|
||||
use Mv.DataCase, async: false
|
||||
|
||||
import Swoosh.TestAssertions
|
||||
|
||||
alias Mv.Mailer
|
||||
|
||||
setup :set_swoosh_global
|
||||
|
||||
describe "send_test_email/1" do
|
||||
test "returns {:ok, email} and sends one email with expected subject/body when successful" do
|
||||
to_email = "test-#{System.unique_integer([:positive])}@example.com"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue