public
Last active

Testing with headers in RSpec

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6
headers = {
'HTTP_X_FLYING_SPHINX_TOKEN' => "abcdef:123456",
'HTTP_ACCEPT' => 'application/vnd.flying-sphinx-v2+json'
}
 
get '/api/app', {}, headers

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.