Skip to content

Instantly share code, notes, and snippets.

@pat
Created November 20, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pat/4121959 to your computer and use it in GitHub Desktop.
Save pat/4121959 to your computer and use it in GitHub Desktop.
Testing with headers in RSpec
headers = {
'HTTP_X_FLYING_SPHINX_TOKEN' => "abcdef:123456",
'HTTP_ACCEPT' => 'application/vnd.flying-sphinx-v2+json'
}
get '/api/app', {}, headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment