spec/grape/dsl/desc_spec.rb in grape-1.7.0 vs spec/grape/dsl/desc_spec.rb in grape-1.7.1

- old
+ new

@@ -24,10 +24,11 @@ summary: 'summary', description: 'The description', detail: 'more details', params: { first: :param }, entity: Object, + default: { code: 400, message: 'Invalid' }, http_codes: [[401, 'Unauthorized', 'Entities::Error']], named: 'My named route', body_name: 'My body name', headers: [ XAuthToken: { @@ -52,9 +53,10 @@ subject.desc 'The description' do summary 'summary' detail 'more details' params(first: :param) success Object + default code: 400, message: 'Invalid' failure [[401, 'Unauthorized', 'Entities::Error']] named 'My named route' body_name 'My body name' headers [ XAuthToken: {