I've been digging through the issue this morning as well. The problem comes from here http://apidock.com/rails/ActionController/TestProcess/process as the method signature looks like this (action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
. This was quite unexpected to me and I'll keep looking though I'm not quite sure why it happens like this.
To get it working you could do
before do
request.headers['X-API-KEY'] = 'somekey'
end
This works, although not exactly what I wanted/expected from the get
method.