diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-10-08 11:25:19 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-10-08 11:25:19 +0100 |
commit | 7cfbf5d5f9e0b54dff4e116f53e06f5fb5b68a34 (patch) | |
tree | b8725658255feda2da0c53f8532c17b9f90306f6 /t/app/controller/report_new.t | |
parent | a1ae8fd11dd82e48d7d1409cc0edf55eb57ed04d (diff) |
Couple of tests missing MapIt override.
Looks like Travis doesn't like connections back to itself.
Diffstat (limited to 't/app/controller/report_new.t')
-rw-r--r-- | t/app/controller/report_new.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 79072bcfe..92bc54ba4 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -25,7 +25,11 @@ subtest "test that bare requests to /report/new get redirected" => sub { is $mech->uri->path, '/', "went to /"; is_deeply { $mech->uri->query_form }, {}, "query empty"; - $mech->get_ok('/report/new?pc=SW1A%201AA'); + FixMyStreet::override_config { + MAPIT_URL => 'http://mapit.mysociety.org/', + }, sub { + $mech->get_ok('/report/new?pc=SW1A%201AA'); + }; is $mech->uri->path, '/around', "went to /around"; is_deeply { $mech->uri->query_form }, { pc => 'SW1A 1AA' }, "pc correctly transferred"; |