aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_new.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/report_new.t')
-rw-r--r--t/app/controller/report_new.t7
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'";