From 0fb910f46e49f9868c8ae134f0984ac16a28fb3f Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 27 Aug 2012 12:09:06 +0100 Subject: update test as country problems on district council cobrands now redirect to main site instead of returning a 404 --- t/app/controller/report_new.t | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 't/app/controller') diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 88236a1c3..f97e0daf4 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -1015,8 +1015,16 @@ SKIP: { $report->discard_changes; is $report->state, 'confirmed', "Report is now confirmed"; - # Shouldn't be found, as it was a county problem - is $mech->get( '/report/' . $report->id )->code, 404, "report not found"; + # County problems are redirected to the main site + $mech->get_ok( '/report/' . $report->id ); + $mech->title_like( + qr/Test Report - Viewing a problem :: FixMyStreet/, + 'county problems redirected to main FMS site' + ); + $mech->content_lacks( + 'Lichfield District', + 'Not on Lichfield cobrand' + ); # But should be on the main site $mech->host( 'www.fixmystreet.com' ); -- cgit v1.2.3