From a8e7842bd2a2e7f6f25cd947aca5174356d9bfcc Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 5 Jun 2013 09:42:46 +0100 Subject: Only append cobrand_data to URI if present. --- t/app/controller/admin.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 't/app/controller/admin.t') 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} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id} ); $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} ); - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id/#update_$u_id">$u_id} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id#update_$u_id">$u_id} ); $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} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id} ); }; subtest 'search abuse' => sub { -- cgit v1.2.3