From 186036f2094aac2d73530a4143efa97db98b4811 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 27 May 2016 15:24:34 +0100 Subject: Fix broken test due to missing config override. --- t/app/controller/around.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/t/app/controller/around.t b/t/app/controller/around.t index 89ca5246e..9e2e7c524 100644 --- a/t/app/controller/around.t +++ b/t/app/controller/around.t @@ -124,8 +124,13 @@ subtest 'check non public reports are not displayed on around page' => sub { ok $private->update( { non_public => 1 } ), 'problem marked non public'; $mech->get_ok('/'); - $mech->submit_form_ok( { with_fields => { pc => 'EH99 1SP' } }, - "good location" ); + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ { 'fixmystreet' => '.' } ], + MAPIT_URL => 'http://mapit.mysociety.org/', + }, sub { + $mech->submit_form_ok( { with_fields => { pc => 'EH99 1SP' } }, + "good location" ); + }; $mech->content_lacks( 'Around page Test 3 for 2651', 'problem marked non public is not visible' ); }; -- cgit v1.2.3