diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-12 17:50:50 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-27 09:52:37 +0000 |
commit | aa50b33865148d587e70218d0f8bff9c321cbeb8 (patch) | |
tree | 075a20983d68fedca47988e9dcf7f49da91b9417 /t | |
parent | 86740bb1c1ee72834e0af5e9900689c1ca7292b9 (diff) |
[UK] Fix two-tier message in confirm sent email.
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/bucks.t | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t index 74684c27e..e2b4214da 100644 --- a/t/cobrand/bucks.t +++ b/t/cobrand/bucks.t @@ -76,13 +76,14 @@ subtest 'pothole on road not sent to extra email' => sub { }; ($report) = $mech->create_problems_for_body(1, $district->id, 'Off Road', { - category => 'Flytipping', cobrand => 'fixmystreet', + category => 'Flytipping', cobrand => 'buckinghamshire', latitude => 51.813173, longitude => -0.826741, }); subtest 'flytipping off road sent to extra email' => sub { FixMyStreet::Script::Reports::send(); - my $email = $mech->get_email; - is $email->header('To'), '"Chiltern" <flytipping@chiltern>'; + my @email = $mech->get_email; + is $email[0]->header('To'), '"Chiltern" <flytipping@chiltern>'; + like $mech->get_text_body_from_email($email[1]), qr/Please note that Buckinghamshire County Council is not responsible/; $report->discard_changes; is $report->external_id, undef, 'Report has right external ID'; }; |