Many things on the web seem to suggest that VCR can be used with Capybara.
I have three problems.
- This doesn't make much sense to me, because the test driver and the application code don't share memory.
- I'm not finding full recipes on how to set this up.
- I'm finding bits and pieces of how people have set this up, but it's outside of the context of rails 5.1, which does the capybara setup behind the scenes.
How do I configure a Rails 5.1 app, Capybara, and VCR to work together for system tests?
(My headless browser is phantomjs, driven by poltergeist. But I don't need to intercept requests from the browser, only server-side requests. If I needed to intercept from the browser I would probably use a full http proxy server, like puffing-billy.)