Use webmock to power the with_http_stubs helper

This involves a small amount of changing the fixtures since we're
using the regexp and not the full url matching powers of webmock.
This commit is contained in:
Andy Allan 2016-10-29 19:40:48 +02:00
parent 90175c3bdb
commit 5e86393f72
5 changed files with 19 additions and 35 deletions

View file

@ -1,10 +1,10 @@
/cgi/geocoder.fcgi?format=text&postcode=CV4+7AL:
/cgi/geocoder.fcgi?format=text&postcode=CV4%207AL:
code: 200
body: |
# Easting,Northing,Matched Postcode,Latitude,Longitude
429926,276058,'CV4 7AL',52.381748701968,-1.56176420939232
/cgi/geocoder.fcgi?format=text&postcode=XX9+9XX:
/cgi/geocoder.fcgi?format=text&postcode=XX9%209XX:
code: 200
body: |
Error: Postcode area 'XX' not found, postcode probably invalid