mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
avoid metadata mutation in request_factory
This commit is contained in:
@@ -236,17 +236,6 @@ module Rswag
|
||||
end
|
||||
end
|
||||
|
||||
context 'in header with no other params' do
|
||||
let(:key_location) { :header }
|
||||
|
||||
it 'adds name and example value to the headers' do
|
||||
expect(request[:headers]).to eq('api_key' => 'foobar')
|
||||
expect(metadata[:operation][:parameters]).to(
|
||||
include(name: 'api_key', in: :header, type: :string, required: true)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context 'in header with auth param already added' do
|
||||
let(:key_location) { :header }
|
||||
before do
|
||||
|
||||
Reference in New Issue
Block a user