A great trick here that will save you tons of time is to look at existing specs (either for plugins or core)
The magic keyword you are looking for here is stub_request it is used lots of places in our spec tests, for example here:
We use GitHub - bblimke/webmock: Library for stubbing and setting expectations on HTTP requests in Ruby. · GitHub so pretty much anything should work, if you simply need a simple HTTP get, this class has simple example of how we use FinalDestination class that wraps stuff for you.
For a simple get excon may be overkill. We have been slowly winding down on our excon use in core due to strangeness with it. I would recommend avoiding faraday we don’t ever use it in core.
Regarding getting stuck with specs. A huge time saver is
bin/rake autospec
Once you run that, save you plugin.rb file and right away all the specs will run, same goes for specific controller specs.