Skip to content

Commit

Permalink
Clarify mailer test setup
Browse files Browse the repository at this point in the history
Clarify mailer test setup so that its easier to understand how we're
overriding the default config with `@tag adapter` in tests.
  • Loading branch information
germsvel committed Dec 24, 2020
1 parent 4080bd6 commit e5cefc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/bamboo/mailer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ defmodule Bamboo.MailerTest do
setup context do
config =
Keyword.merge(@mailer_config, [adapter: context[:adapter]], fn
_, v, nil -> v
_, _, v -> v
_key, default, nil -> default
_key, _default, override -> override
end)

Application.put_env(:bamboo, __MODULE__.Mailer, config)
Expand Down

0 comments on commit e5cefc3

Please sign in to comment.