aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-01 12:00:55 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-01 12:00:55 +0100
commit9d92c3c38bad26cd58a2e799b467202bcbb31dbe (patch)
tree2337d0f4be2a48a8d3afe0a5f1a663fc48261c3b
parent094e926d6c62bc8e9e45e69ec256744cda169d7d (diff)
Fix failing test for problem confirmation
Update for change to bodies_str, make sure sent_fail_count 0 and update standard template variables
-rw-r--r--t/app/model/problem.t3
-rw-r--r--templates/email/default/confirm_report_sent.txt2
2 files changed, 3 insertions, 2 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t
index 6ba2bbde4..7daa653fc 100644
--- a/t/app/model/problem.t
+++ b/t/app/model/problem.t
@@ -596,13 +596,14 @@ subtest 'check can turn on report sent email alerts' => sub {
$problem->discard_changes;
$problem->update( {
- council => 2651,
+ bodies_str => 2651,
state => 'confirmed',
confirmed => \'ms_current_timestamp()',
whensent => undef,
category => 'potholes',
name => 'Test User',
cobrand => 'fixmystreet',
+ send_fail_count => 0,
} );
my $m = new Test::MockModule(
diff --git a/templates/email/default/confirm_report_sent.txt b/templates/email/default/confirm_report_sent.txt
index 42f200213..201888270 100644
--- a/templates/email/default/confirm_report_sent.txt
+++ b/templates/email/default/confirm_report_sent.txt
@@ -2,7 +2,7 @@ Subject: Problem Report Sent: <?=$values['title']?>
Hi,
-Your report about "<?=$values['title']?>" has been sent to <?=$values['councils_name']?>.
+Your report about "<?=$values['title']?>" has been sent to <?=$values['bodies_name']?>.
Thanks