diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-30 00:01:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-30 09:37:56 +0100 |
commit | 89d6eb2ca5000c1ec92030da44bff57090889b2d (patch) | |
tree | b182d7daadf3444dbe2b68039f2ab73d6ff99f16 /t/app/controller | |
parent | 22acc7613cad96477689023a97827c72f9da872d (diff) |
Fix test calling external service.
This test would pass offline (as query would fail without error),
and online was passing because Nominatim was presumably returning
no results before today?
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/index.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/app/controller/index.t b/t/app/controller/index.t index be4da6034..9be6dfa1e 100644 --- a/t/app/controller/index.t +++ b/t/app/controller/index.t @@ -8,7 +8,11 @@ subtest "check that the form goes to /around" => sub { $mech->get_ok('/'); is $mech->uri->path, '/', "still on '/'"; - $mech->submit_form_ok( { with_fields => { pc => 'SW1A 1AA', } } ); + FixMyStreet::override_config { + MAPIT_URL => 'http://mapit.uk/' + }, sub { + $mech->submit_form_ok( { with_fields => { pc => 'SW1A 1AA', } } ); + }; # check that we are at /around is $mech->uri->path, '/around', "Got to /around"; |