diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-20 17:04:10 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-20 17:04:10 +0100 |
commit | 285b42fd8e8a5f4099c8163ee4a7c89813111c80 (patch) | |
tree | 95a9cd9015db4105d17ba23d0d717284cebeff7a | |
parent | d6fb798ba542bd1bda9f3d2359f1e447e91a489b (diff) |
rss implemented
-rw-r--r-- | t/app/controller/alert.t | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t index 2f25a1c23..f32d0d6e9 100644 --- a/t/app/controller/alert.t +++ b/t/app/controller/alert.t @@ -51,20 +51,16 @@ $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'); -TODO: { - local $TODO = 'not implemented rss feeds yet'; +$mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:A_Location'); +$mech->uri->path('/rss/area/A+Location'); - $mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:A_Location'); - $mech->uri->path('/rss/area/A+Location'); +$mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:1001:A_Location:Diff_Location'); +$mech->uri->path('/rss/area/A+Location/Diff+Location'); - $mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:1001:A_Location:Diff_Location'); - $mech->uri->path('/rss/area/A+Location/Diff+Location'); +$mech->get_ok('/alert/subscribe?rss=1&feed=council:1000:A_Location'); +$mech->uri->path('/rss/reports/A+Location'); - $mech->get_ok('/alert/subscribe?rss=1&feed=council:1000:A_Location'); - $mech->uri->path('/rss/reports/A+Location'); - - $mech->get_ok('/alert/subscribe?rss=1&feed=ward:1000:1001:A_Location:Diff_Location'); - $mech->uri->path('/rss/ward/A+Location/Diff+Location'); -} +$mech->get_ok('/alert/subscribe?rss=1&feed=ward:1000:1001:A_Location:Diff_Location'); +$mech->uri->path('/rss/ward/A+Location/Diff+Location'); done_testing(); |