aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-06-05 09:42:46 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-06-05 09:49:08 +0100
commita8e7842bd2a2e7f6f25cd947aca5174356d9bfcc (patch)
treeade30560a817acd458c28c98f7e157b2008295bc /t
parent3269d92c2f148ea906681c41d6fa5847203c6943 (diff)
Only append cobrand_data to URI if present.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 65e252954..521497f3e 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -1032,13 +1032,13 @@ subtest 'report search' => sub {
$mech->content_contains( $report->title );
my $r_id = $report->id;
- $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/">$r_id</a>} );
+ $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} );
$mech->get_ok('/admin/reports?search=' . $report->user->email);
my $u_id = $update->id;
- $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/">$r_id</a>} );
- $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/#update_$u_id">$u_id</a>} );
+ $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} );
+ $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id#update_$u_id">$u_id</a>} );
$update->state('hidden');
$update->update;
@@ -1056,7 +1056,7 @@ subtest 'report search' => sub {
$report->update;
$mech->get_ok('/admin/reports?search=' . $report->user->email);
- $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/">$r_id</a>} );
+ $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} );
};
subtest 'search abuse' => sub {