If you happen to be seeing a Connection Reset by Peer error in one of your rspec acceptance tests using capybara, chances are you have your config.action_dispatch.show_exceptions set to false for your test environment.
Just thought I’d share as it took me a bit of googling to figure this out. Hoping I could help out the next person!
# Raise exceptions instead of rendering exception templates
- config.action_dispatch.show_exceptions = false
+ config.action_dispatch.show_exceptions = true