Update setting of request headers in DFC controller spec

This commit is contained in:
Matt-Yorkley
2020-05-26 15:32:07 +02:00
parent bde4acd22f
commit 89dd7ddb86

View File

@@ -18,7 +18,7 @@ describe DfcProvider::Api::ProductsController, type: :controller do
describe('.index') do
context 'with authorization token' do
before do
request.env['Authorization'] = 'Bearer 123456.abcdef.123456'
request.headers['Authorization'] = 'Bearer 123456.abcdef.123456'
end
context 'with an authenticated user' do