aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-23 19:25:39 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-23 19:36:32 +0000
commita126927e7989c9024eb447eff0ef8ec796bb945a (patch)
treebfafbad6826bcb316fe4212719097abea57202eb /t
parent7bac754791cfea00ab114134e6aa99affc0eb5e8 (diff)
use .txt suffix on email templates
Diffstat (limited to 't')
-rw-r--r--t/app/helpers/send_email.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t
index 16e85b4ce..adf2c56c1 100644
--- a/t/app/helpers/send_email.t
+++ b/t/app/helpers/send_email.t
@@ -28,7 +28,8 @@ $c->stash->{foo} = 'bar';
Email::Send::Test->clear;
# send the test email
-ok $c->send_email( 'test', { to => 'test@recipient.com' } ), "sent an email";
+ok $c->send_email( 'test.txt', { to => 'test@recipient.com' } ),
+ "sent an email";
# check it got templated and sent correctly
my @emails = Email::Send::Test->emails;
@@ -38,7 +39,6 @@ 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";
-
is $email_as_string,
file(__FILE__)->dir->file('send_email_sample.txt')->slurp,
"email is as expected";