I try to mock out geocoding request by using FakeWeb (in cucumber/
rails).
When I block all http requests I get the message:
Real HTTP connections are disabled. Unregistered request: GET
http://maps.google.com/maps/api/geocode/json?.....
(FakeWeb::NetConnectNotAllowedError)
So I registered the url by trying:
FakeWeb.register_uri(:any, %r|
http://maps\.google\.com/maps/|, :json
=> {
"status": "OK",
....}
I get an error A JSON text must at least contain two octets!
(MultiJson::DecodeError)
I'm not sure what information to return. And how FakeWeb can return
json data..
I hope someone can help.
Thx