aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-08-27 12:09:06 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-27 12:09:06 +0100
commit0fb910f46e49f9868c8ae134f0984ac16a28fb3f (patch)
tree53556d124b07068f0029e2d82f061801dc81191e /t/app/controller
parent88a7d38dffa3dabdf0f85573b254cea9c8ab232b (diff)
update test as country problems on district council cobrands now redirect
to main site instead of returning a 404
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_new.t12
1 files changed, 10 insertions, 2 deletions
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' );