aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-18 13:33:32 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-18 13:33:32 +0000
commit76e55c5da8bd12e83ae4df8e324dd2f4746ceeb1 (patch)
tree1611e72e8442513b58d254a4e1c8e840d5b71c5b /t/app/controller
parent137cdeb6bc888c462ef0cfa50105d1dd0479a7d4 (diff)
Improve test to not be so fragile around newlines.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/admin.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 52d00f4b6..8963e417d 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -1061,7 +1061,7 @@ subtest 'report search' => sub {
subtest 'search abuse' => sub {
$mech->get_ok( '/admin/users?search=example' );
- $mech->content_like(qr/test4\@example.com.*\n.*\n.*Email in abuse table/);
+ $mech->content_like(qr{test4\@example.com.*</td>\s*<td>.*?</td>\s*<td>\(Email in abuse table});
};
subtest 'show flagged entries' => sub {