diff options
author | Struan Donald <struan@exo.org.uk> | 2011-11-28 17:17:58 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-11-28 17:17:58 +0000 |
commit | becb211aac950c1557d634bd0b5aba402081d483 (patch) | |
tree | b75a87960ebb77dd9288c23c42a9e6390abebef2 /t/app/controller | |
parent | da90a635167cec6fad523a651620770ceb432f38 (diff) |
add in postcode to email alert titles
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/alert_new.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t index 580a5ad9a..8231b1996 100644 --- a/t/app/controller/alert_new.t +++ b/t/app/controller/alert_new.t @@ -452,8 +452,9 @@ subtest "Test normal alert signups and that alerts are sent" => sub { $count++ if $_->body =~ /The following updates have been left on this problem:/; $count++ if $_->body =~ /The following new problems have been reported to City of\s*Edinburgh Council:/; $count++ if $_->body =~ /The following nearby problems have been added:/; + $count++ if $_->body =~ / - Testing, EH1 1BB/; } - is $count, 3, 'Three emails with the right things in them'; + is $count, 5, 'Three emails with the right things in them'; my $email = $emails[0]; like $email->body, qr/Other User/, 'Update name given'; |