diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-21 17:23:07 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-23 18:48:55 +0000 |
commit | 8bdf783d5d18dde25b4d2f8309a42c6096cf09d3 (patch) | |
tree | d725016fcc8429c55b3c0266bb23ac8d56b4a243 /t/Mock/MapIt.pm | |
parent | 02fcb1606bc2b739fdc798e5ca06f2ed1b6bf6ea (diff) |
Always include MapIt mock handler in all tests.
Diffstat (limited to 't/Mock/MapIt.pm')
-rw-r--r-- | t/Mock/MapIt.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/Mock/MapIt.pm b/t/Mock/MapIt.pm index 9aa8b7e40..c3bafc6ca 100644 --- a/t/Mock/MapIt.pm +++ b/t/Mock/MapIt.pm @@ -2,6 +2,7 @@ package t::Mock::MapIt; use JSON::MaybeXS; use Web::Simple; +use LWP::Protocol::PSGI; use mySociety::Locale; @@ -71,4 +72,6 @@ sub postcode { }; } +LWP::Protocol::PSGI->register(t::Mock::MapIt->to_psgi_app, host => 'mapit.uk'); + __PACKAGE__->run_if_script; |