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:
parent
90175c3bdb
commit
5e86393f72
5 changed files with 19 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue