diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-05-27 15:24:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-05-27 15:24:35 +0100 |
commit | 186036f2094aac2d73530a4143efa97db98b4811 (patch) | |
tree | 6a9b0483eb87ca9d386a2c764b775b685a2cb3ba /t/app | |
parent | 05481e83befefb9eeaca511c1b219d6ff06ff455 (diff) |
Fix broken test due to missing config override.
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/around.t | 9 |
1 files 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' ); }; |