In the controller spec, I can set http accept header like this:
request.accept = \"application/json\"
but in the request spec, \"request\"
Using rspec with Rack::Test::Methods
Rack::Test::Methods
header 'X_YOUR_HEADER_VAR', 'val' get '/path'
The header var will come through as X-Your-Header-Var
X-Your-Header-Var