aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/helpers/send_email.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/helpers/send_email.t')
-rw-r--r--t/app/helpers/send_email.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t
index adf2c56c1..97006c7e2 100644
--- a/t/app/helpers/send_email.t
+++ b/t/app/helpers/send_email.t
@@ -39,6 +39,9 @@ is scalar(@emails), 1, "caught one email";
my $email_as_string = $emails[0]->as_string;
ok $email_as_string =~ s{\s+Date:\s+\S.*?$}{}xms, "Found and stripped out date";
+my $expected_email_content = file(__FILE__)->dir->file('send_email_sample.txt')->slurp;
+$expected_email_content =~ s{TESTING_EMAIL}{ FixMyStreet->config('TESTING_EMAIL') }e;
+
is $email_as_string,
- file(__FILE__)->dir->file('send_email_sample.txt')->slurp,
+$expected_email_content,
"email is as expected";