diff --git a/spec/browser_spec.rb b/spec/browser_spec.rb index 0e39825..18ff231 100644 --- a/spec/browser_spec.rb +++ b/spec/browser_spec.rb @@ -141,7 +141,9 @@ describe Capybara::Driver::Webkit::Browser do after do @proxy.kill - @server.shutdown + # workaround for ENOTCONN error triggered by `shutdown` on some platforms + @server.shutdown rescue Errno::ENOTCONN nil + @server.close end it 'uses the HTTP proxy correctly' do