diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-28 13:27:12 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-28 13:27:12 +0100 |
commit | ce51049d631efb2ceb1ae75798bd074d8668c428 (patch) | |
tree | 9967dda2e8e20c43f6714b54584853892f254f4b /t | |
parent | b76cfb3889140f1c771c1f98254f724aad3d4297 (diff) | |
parent | b26da0da5e1f8631646a34fdacbce9bb5bc3b706 (diff) |
Merge branch '1639-email-ascender'
Diffstat (limited to 't')
-rw-r--r-- | t/app/helpers/send_email.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t index 3975002fa..66b771292 100644 --- a/t/app/helpers/send_email.t +++ b/t/app/helpers/send_email.t @@ -19,7 +19,6 @@ use Test::LongString; use Catalyst::Test 'FixMyStreet::App'; -use Email::Send::Test; use Path::Tiny; use FixMyStreet::TestMech; @@ -31,7 +30,7 @@ my $c = ctx_request("/"); $c->stash->{foo} = 'bar'; # clear the email queue -Email::Send::Test->clear; +$mech->clear_emails_ok; # send the test email FixMyStreet::override_config { @@ -42,7 +41,7 @@ FixMyStreet::override_config { }; # check it got templated and sent correctly -my @emails = Email::Send::Test->emails; +my @emails = $mech->get_email; is scalar(@emails), 1, "caught one email"; # Get the email, check it has a date and then strip it out |