jonleighton/poltergeist — pull request #93 by bigloser (2012-07-01 23:17:50+00:00)
Title: Support headers

Ok I've recreated the pull request and addressed all the code review suggestions. You also suggested to implement response_headers, but after some poking around phantomjs I think it might be best to just implement it in separate pull req. Also all the tests pass except for one which fails for me in both master and my branch:

1) Capybara::Session with poltergeist driver supports running multiple sessions at once
Failure/Error: @session.visit('/')
Capybara::Poltergeist::DeadClient:
The PhantomJS client died while processing {"name":"visit","args":["http://127.0.0.1:55373/",{}]}
# ./lib/capybara/poltergeist/server.rb:29:in `send'
# ./lib/capybara/poltergeist/browser.rb:118:in `command'
# ./lib/capybara/poltergeist/browser.rb:20:in `visit'
# ./lib/capybara/poltergeist/driver.rb:71:in `visit'
# ./spec/integration/session_spec.rb:116:in `block (3 levels) in '