Revert "Add a macro for complexes multiparts"

This commit is contained in:
Blake Erickson
2021-03-06 14:52:49 -07:00
committed by GitHub
parent f7036b7e5a
commit 989aab656f
7 changed files with 1 additions and 110 deletions

View File

@@ -178,20 +178,6 @@ module Rswag
)
end
end
context 'smart form payload' do
before do
metadata[:operation][:consumes] = ['multipart/form-data']
metadata[:operation][:parameters] = [{ name: 'comment', in: :formData, schema: { type: 'object' } }]
allow(example).to receive(:comment).and_return(text: 'Some comment')
end
it 'sets payload to hash of names and example values' do
expect(request[:payload]).to eq(
:text => 'Some comment'
)
end
end
end
context 'produces content' do