diff options
author | Maksim <parallel588@gmail.com> | 2019-08-19 15:34:29 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
commit | a320358703db249ab20df5afd81c92fb42b8cadb (patch) | |
tree | d46f6d2447183492d75983986ae2d57b75fdcb0b /test/emails/mailer_test.exs | |
parent | 49ae3191df2a7acfa741e93d6f5142f9cf27dc06 (diff) | |
download | pleroma-a320358703db249ab20df5afd81c92fb42b8cadb.tar.gz |
added test helpers to clear config after tests
Diffstat (limited to 'test/emails/mailer_test.exs')
-rw-r--r-- | test/emails/mailer_test.exs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/emails/mailer_test.exs b/test/emails/mailer_test.exs index 450bb09c7..ae5effb7a 100644 --- a/test/emails/mailer_test.exs +++ b/test/emails/mailer_test.exs @@ -15,11 +15,7 @@ defmodule Pleroma.Emails.MailerTest do to: [{"Test User", "user1@example.com"}] } - setup do - value = Pleroma.Config.get([Pleroma.Emails.Mailer, :enabled]) - on_exit(fn -> Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], value) end) - :ok - end + clear_config([Pleroma.Emails.Mailer, :enabled]) test "not send email when mailer is disabled" do Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false) |