aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-05 09:28:27 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-05 09:37:34 +0100
commit37950c4077bfe9ef2f0b879cb4af74ffae278b47 (patch)
treee6b700717e3afb1edc302bc406c56f42db048231 /t/app/controller/admin.t
parent810dc52bee762bb9211041b4cb9e70386c783068 (diff)
display link to site for all visible states plus fix a few other hardcoded
states. fixes #154
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r--t/app/controller/admin.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 4bfdd7821..25e921a4f 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -944,6 +944,12 @@ subtest 'report search' => sub {
$mech->get_ok('/admin/search_reports?search=' . $report->user->email);
$mech->content_like( qr{<tr [^>]*hidden[^>]*> \s* <td> \s* $r_id \s* </td>}xs );
+
+ $report->state('fixed - user');
+ $report->update;
+
+ $mech->get_ok('/admin/search_reports?search=' . $report->user->email);
+ $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/">$r_id</a>} );
};
subtest 'search abuse' => sub {