If you want to stub outgoing requests (and do not care about the response) use Webmock and stub it like below:
read moreIf you want to stub outgoing requests (and do not care about the response) use Webmock and stub it like below:
read moreThere are a few ways of modularising your code. Here are some ways how I currently do it.
read more