jxson
5/26/2010 - 8:33 PM

session.rb

# 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