How could I mock any method without using any gem?
Suppose I have access to an complex object like request
How could I make
request.location.country
to return a mocked value.
I read I can mock geocoder
results with gems, but I would like to know a generic way.