aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/alert.t20
-rw-r--r--t/app/controller/report_updates.t7
2 files changed, 15 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();
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t
index 3c07ac054..8c34541ed 100644
--- a/t/app/controller/report_updates.t
+++ b/t/app/controller/report_updates.t
@@ -265,6 +265,13 @@ subtest "submit an update for a non registered user" => sub {
is $update->user->email, 'unregistered@example.com', 'update email';
is $update->text, 'Update from an unregistered user', 'update text';
is $add_alerts, 0, 'do not sign up for alerts';
+
+ $mech->get_ok( $url . $url_token );
+ $mech->content_contains( "/report/$report_id#$update_id" );
+
+ $update->discard_changes;
+
+ is $update->state, 'confirmed', 'update confirmed';
};
for my $test (