spec/lib/endpoint_spec.rb in grape-swagger-0.33.0 vs spec/lib/endpoint_spec.rb in grape-swagger-0.34.0
- old
+ new
@@ -107,11 +107,11 @@
let(:expected_params) do
[
['id', { required: true, type: 'String' }],
['description', { required: false, type: 'String' }],
['stuffs', { required: true, type: 'Array', is_array: true }],
- ['stuffs[id]', { required: true, type: 'String', is_array: true }]
+ ['stuffs[id]', { required: true, type: 'String' }]
]
end
it 'parses params correctly and adds is_array to the array and all elements' do
expect(params).to eq expected_params
@@ -136,11 +136,11 @@
['id', { required: true, type: 'String' }],
['description', { required: false, type: 'String' }],
['stuffs', { required: true, type: 'Array', is_array: true }],
['stuffs[owners]', { required: true, type: 'Array', is_array: true }],
['stuffs[creators]', { required: true, type: 'Array', is_array: true }],
- ['stuffs[owners][id]', { required: true, type: 'String', is_array: true }],
- ['stuffs[creators][id]', { required: true, type: 'String', is_array: true }],
+ ['stuffs[owners][id]', { required: true, type: 'String' }],
+ ['stuffs[creators][id]', { required: true, type: 'String' }],
['stuffs_and_things', { required: true, type: 'String' }]
]
end
it 'parses params correctly and adds is_array to the array and all elements' do