aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/alert.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-06 11:24:28 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-06 11:24:28 +0100
commitaaf60ba622748d8f5a5c4eb16fe663ff9fec5a0d (patch)
tree08d466614a35d5e438c797cb9ae7868aafdcd00b /t/app/controller/alert.t
parent9787559f918a136da3096d05abbb7430731ecaa9 (diff)
created council controller and use that for load and check councils
Diffstat (limited to 't/app/controller/alert.t')
-rw-r--r--t/app/controller/alert.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index 80037fafe..31b5fb3cf 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -20,11 +20,14 @@ $mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html lang="en-gb"');
-$mech->get_ok('/alert/list?pc=ZZ99ZY');
+$mech->get_ok('/alert/list?pc=EH99 1SP');
$mech->title_like(qr/^Local RSS feeds and email alerts/);
-$mech->content_contains('Local RSS feeds and email alerts for ZZ9&nbsp;9ZY');
+$mech->content_contains('Local RSS feeds and email alerts for EH99&nbsp;1SP');
$mech->content_contains('html lang="en-gb"');
$mech->get_ok('/alert/list?pc=High Street');
$mech->content_contains('We found more than one match for that location');
+
+$mech->get_ok('/alert/list?pc=');
+$mech->content_contains('hat location does not appear to be covered by a council');
done_testing();