diff options
author | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
commit | 987124b09a32248414faf4d0d6615d43b29ac6f6 (patch) | |
tree | a549db8af723c981d3b346e855f25d6fd5ff8aa7 /t/app/helpers | |
parent | dbf56159e44c1560a413022451bf1a1c4cb22a52 (diff) | |
parent | a085b63ce09f87e83b75cda9b9cd08aadfe75d61 (diff) |
Merge tag 'v2.0.4' into fiksgatami-dev
Diffstat (limited to 't/app/helpers')
-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 |