mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Update setting of request headers in DFC controller spec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user