# monkey patch for setting headers # http://bit.ly/aYhlWg module Capybara class Session def set_request_header(name, value) driver.header(name, value) end end end