aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
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
parent9787559f918a136da3096d05abbb7430731ecaa9 (diff)
created council controller and use that for load and check councils
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/alert.t7
-rw-r--r--t/app/controller/council.t9
2 files changed, 14 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();
diff --git a/t/app/controller/council.t b/t/app/controller/council.t
new file mode 100644
index 000000000..d01b3ccd7
--- /dev/null
+++ b/t/app/controller/council.t
@@ -0,0 +1,9 @@
+use strict;
+use warnings;
+use Test::More;
+
+
+use Catalyst::Test 'FixMyStreet::App';
+use FixMyStreet::App::Controller::Council;
+
+done_testing();