Yeah, check this gem: https://github.com/bblimke/webmock

I've found it when I was looking for solution how to test http download. It is awesome.