diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-10 10:55:42 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-10 10:55:42 +0100 |
commit | 6ff9e651989a835c996635bf502723a4701ed483 (patch) | |
tree | a3f38d99b85dfae0d010f023f418a6527ac605dd /t/app/controller/alert.t | |
parent | da0902b7c836e514a5dd7304eb8354600e768225 (diff) |
Add in RSS redirects
Diffstat (limited to 't/app/controller/alert.t')
-rw-r--r-- | t/app/controller/alert.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t index 9b10070b2..f3b705650 100644 --- a/t/app/controller/alert.t +++ b/t/app/controller/alert.t @@ -44,4 +44,27 @@ $mech->content_contains('hat location does not appear to be covered by a council $mech->get_ok('/alert/list?pc=GL502PR'); $mech->content_contains('Problems within the boundary of'); + +$mech->get_ok('/alert/rss?type=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy=' ); +$mech->content_contains('Please select the feed you want'); + +$mech->get_ok('/alert/rss?feed=invalid:1000:A_Locationtype=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy='); +$mech->content_contains('Illegal feed selection'); + +TODO: { + local $TODO = 'not implemented rss feeds yet'; + + $mech->get_ok('/alert/rss?feed=area:1000:A_Location'); + $mech->uri->path('/rss/area/A+Location'); + + $mech->get_ok('/alert/rss?feed=area:1000:1001:A_Location:Diff_Location'); + $mech->uri->path('/rss/area/A+Location/Diff+Location'); + + $mech->get_ok('/alert/rss?feed=council:1000:A_Location'); + $mech->uri->path('/rss/reports/A+Location'); + + $mech->get_ok('/alert/rss?feed=ward:1000:1001:A_Location:Diff_Location'); + $mech->uri->path('/rss/ward/A+Location/Diff+Location'); +} + done_testing(); |