Skip to content

Commit

Permalink
test: subject prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jul 17, 2024
1 parent 233a36f commit 6b72ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ExUnit.start()

Application.put_env(:tower_email, Tower.Email.Mailer, adapter: Swoosh.Adapters.Test)
Application.put_env(:tower_email, :otp_app, :tower_email)
Application.put_env(:tower_email, :environment, :test)
5 changes: 4 additions & 1 deletion test/tower_email_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ defmodule TowerEmailTest do
# TODO: Support waiting on assert_email_sent with a timeout
# Swoosh.TestAssertions.assert_email_sent(subject: "ArithmeticError: bad argument in arithmetic expression")
assert_receive(
{:email, %{subject: "ArithmeticError: bad argument in arithmetic expression"}},
{
:email,
%{subject: "[tower_email][test] ArithmeticError: bad argument in arithmetic expression"}
},
1_000
)
end
Expand Down

0 comments on commit 6b72ba0

Please sign in to comment.