diff options
author | Dave Arter <davea@mysociety.org> | 2014-05-20 15:18:10 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-07-08 15:28:21 +0100 |
commit | 6b02b84a5359066b242ddfb18d6998a0b2957360 (patch) | |
tree | 5b8095f1a02cd84da7cb2b0ae6be5106eb1b4119 /t/app/controller/report_new.t | |
parent | 50c388749c727bf1e252e00c1865cb595b4972a7 (diff) |
Add two-tier responsibility note to confirm email
Diffstat (limited to 't/app/controller/report_new.t')
-rw-r--r-- | t/app/controller/report_new.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 94d34a93d..9b10de2bf 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -1320,6 +1320,13 @@ subtest "test Hart" => sub { ok $email, "got an email"; like $email->body, qr/to confirm that you want to send your/i, "confirm the problem"; + # does it reference the fact that this report hasn't been sent to Hart? + if ( $test->{national} ) { + like $email->body, qr/Hart Council is not responsible for this type/i, "mentions report hasn't gone to Hart"; + } else { + unlike $email->body, qr/Hart Council is not responsible for this type/i, "doesn't mention report hasn't gone to Hart"; + } + my ($url) = $email->body =~ m{(http://\S+)}; ok $url, "extracted confirm url '$url'"; |