diff options
author | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
commit | 42d874db498d0fabae92d0c87acf99054d92391b (patch) | |
tree | d0cf5afdee3d244c4e5da6fe1ab9acba620634df /t/app/controller/alert.t | |
parent | 19a7c5dda85a47a68040c742791e9cd9d3e52be6 (diff) | |
parent | dc7613329c275cd158fdde8faf1c0e301f5b7202 (diff) |
Merge tag 'v2.2' into fiksgatami-dev
Diffstat (limited to 't/app/controller/alert.t')
-rw-r--r-- | t/app/controller/alert.t | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t index cb5949b8f..ce3c2ef9b 100644 --- a/t/app/controller/alert.t +++ b/t/app/controller/alert.t @@ -1,6 +1,3 @@ -use strict; -use warnings; -use Test::More; use LWP::Protocol::PSGI; use FixMyStreet::TestMech; @@ -27,7 +24,7 @@ FixMyStreet::override_config { $mech->get_ok('/alert/list?pc=EH1 1BB'); $mech->title_like(qr/^Local RSS feeds and email alerts/); - $mech->content_contains('Here are the types of local problem alerts for ‘EH1 1BB’'); + $mech->content_like(qr/Local RSS feeds and email alerts for .EH1 1BB/); $mech->content_contains('html class="no-js" lang="en-gb"'); $mech->content_contains('Problems within 10.0km'); $mech->content_contains('rss/pc/EH11BB/2'); @@ -50,8 +47,10 @@ FixMyStreet::override_config { $mech->get_ok('/alert/list?pc='); $mech->content_contains('To find out what local alerts we have for you'); + # Two-tier council $mech->get_ok('/alert/list?pc=GL502PR'); - $mech->content_contains('Problems within the boundary of'); + $mech->content_contains('Problems in an area'); + $mech->content_contains('Reports by destination'); $mech->get_ok('/alert/subscribe?rss=1&type=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy=' ); $mech->content_contains('Please select the feed you want'); |