Skip to content

Instantly share code, notes, and snippets.

@jxson
Created May 26, 2010 20:33
Show Gist options
  • Select an option

  • Save jxson/415004 to your computer and use it in GitHub Desktop.

Select an option

Save jxson/415004 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment