aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-10 17:27:18 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-09 18:32:04 +0100
commitbf2583d2221e75f7cecdd94ca573b0ecc4d387de (patch)
tree3972916bbddab187ae9a5725d9ad297bc4c46ebb /t
parente46f7af02ad2b54033bc9c525e7473ca256d9188 (diff)
list flagged items page for admin
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index acbe17c1b..2740a1dbb 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -772,6 +772,18 @@ subtest 'search abuse' => sub {
$mech->content_contains('test4@example.com');
};
+subtest 'show flagged entries' => sub {
+ $report->flagged( 1 );
+ $report->update;
+
+ $user->flagged( 1 );
+ $user->update;
+
+ $mech->get_ok('/admin/list_flagged');
+ $mech->content_contains( $report->title );
+ $mech->content_contains( $user->email );
+};
+
$mech->delete_user( $user );
$mech->delete_user( $user2 );
$mech->delete_user( $user3 );