aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-04 10:16:01 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-04 10:16:01 +0000
commitd606ee6a023a858bf494f0dfba80eb1807c2e7df (patch)
tree701ce99631ad03922277df94fd467804390b84ba /t
parent744fdc93d5b7364c91b8bd4dcc41a5ed12cf7036 (diff)
Make sure bodies exist that redirects test for.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/alert.t4
-rw-r--r--t/app/controller/alert_new.t3
2 files changed, 7 insertions, 0 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index 3d95bef6d..32283134d 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -51,6 +51,10 @@ $mech->content_contains('Please select the feed you want');
$mech->get_ok('/alert/subscribe?rss=1&feed=invalid:1000:A_Locationtype=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy=');
$mech->content_contains('Illegal feed selection');
+$mech->create_body_ok(2504, 'Birmingham City Council');
+$mech->create_body_ok(2226, 'Gloucestershire County Council');
+$mech->create_body_ok(2326, 'Cheltenham Borough Council');
+
$mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:Birmingham');
is $mech->uri->path, '/rss/reports/Birmingham';
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index 518cb3a12..ae09fcb65 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -307,6 +307,9 @@ for my $test (
};
}
+$mech->create_body_ok(2226, 'Gloucestershire County Council');
+$mech->create_body_ok(2326, 'Cheltenham Borough Council');
+
subtest "Test two-tier council alerts" => sub {
for my $alert (
{ feed => "local:51.896269:-2.093063", result => '/rss/l/51.896269,-2.093063' },