aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-05 16:59:05 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-05 16:59:05 +0100
commiteb823376088f47abf23050a0193225a45b51d6d3 (patch)
treea6eb5fc8cf694a7dd70d7d1a957d65ec09a6c60a /t/app/controller/admin.t
parentbc39723b98a0bb07cc8d57e99489e3a014d857ef (diff)
parent7fc1083eb431312a59758c473e8ff52ceb8585ef (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into js-validation
Conflicts: templates/web/default/common_header_tags.html
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 {