lib/capybara/poltergeist/browser.rb in poltergeist-1.8.0 vs lib/capybara/poltergeist/browser.rb in poltergeist-1.8.1

- old
+ new

@@ -248,10 +248,11 @@ def network_traffic command('network_traffic').values.map do |event| NetworkTraffic::Request.new( event['request'], - event['responseParts'].map { |response| NetworkTraffic::Response.new(response) } + event['responseParts'].map { |response| NetworkTraffic::Response.new(response) }, + event['error'] ? NetworkTraffic::Error.new(event['error']) : nil ) end end def clear_network_traffic