aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/alert.t
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-05-20 17:34:00 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-05-20 17:34:11 +0100
commit4305f38eeb503db4aac658839012b8e7644b455e (patch)
treeddfa8a29b5d2c30ddb7aacd40a58a2ae7de1df41 /t/app/controller/alert.t
parent1e67ddbedf6481e3e8650a498679eafd710230ca (diff)
parentfb2eae201d01d285ac2b21fd32c2ff35a6f7aae5 (diff)
Merge branch 'migrate_to_catalyst' of ssh://evdb@git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 't/app/controller/alert.t')
-rw-r--r--t/app/controller/alert.t20
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();