diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-08-03 10:43:39 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-08-03 10:43:39 +0100 |
commit | aa3cbc91dbc7e0c1dd416b90d963d06f3e07738a (patch) | |
tree | 9753973f93964991d28feb62b08990c27364e3cb /t | |
parent | 76f39991e1caf89e12e8bb8f49ba0a99df56f3dc (diff) |
Make sure Message-ID is set on outgoing messages.
Diffstat (limited to 't')
-rw-r--r-- | t/app/helpers/send_email.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t index ac7e5b5c2..8c043f701 100644 --- a/t/app/helpers/send_email.t +++ b/t/app/helpers/send_email.t @@ -9,7 +9,7 @@ BEGIN { FixMyStreet->test_mode(1); } -use Test::More tests => 5; +use Test::More tests => 6; use Email::Send::Test; use Path::Class; @@ -44,6 +44,7 @@ is scalar(@emails), 1, "caught one email"; # Get the email, check it has a date and then strip it out my $email_as_string = $emails[0]->as_string; ok $email_as_string =~ s{\s+Date:\s+\S.*?$}{}xms, "Found and stripped out date"; +ok $email_as_string =~ s{\s+Message-ID:\s+\S.*?$}{}xms, "Found and stripped out message ID (contains epoch)"; my $expected_email_content = file(__FILE__)->dir->file('send_email_sample.txt')->slurp; my $name = FixMyStreet->config('CONTACT_NAME'); |