Testing an application that integrates with an HTTP service can be tricky: Making a connection to another server is slow. Your tests can become dependent on data that lives outside the test suite. Going offline means you can’t run the tests. The service going down causes continuous integration to fail. It may seem like a world of pain, but you’re not going to let a few HTTP requests get between yo
![Using Capybara to Test JavaScript that Makes HTTP Requests](https://cdn-ak-scissors.b.st-hatena.com/image/square/7455d5828d165b9339d7dc3649cf900309028a16/height=288;version=1;width=512/http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_mcrxy00UgZ1qzocnw.jpg)