public
Created

  • Download Gist
session.rb
Ruby
1 2 3 4 5 6 7 8 9
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.