spec/grape/dsl/desc_spec.rb in grape-0.18.0 vs spec/grape/dsl/desc_spec.rb in grape-0.19.0
- old
+ new
@@ -32,12 +32,11 @@
required: true
},
XOptionalHeader: {
description: 'Not really needed',
required: false
- }
- ]
+ }]
}
subject.desc 'The description' do
detail 'more details'
params(first: :param)
@@ -49,11 +48,10 @@
required: true
},
XOptionalHeader: {
description: 'Not really needed',
required: false
- }
- ]
+ }]
end
expect(subject.namespace_setting(:description)).to eq(expected_options)
expect(subject.route_setting(:description)).to eq(expected_options)
end