spec/support/model_parsers/representable_parser.rb in grape-swagger-0.27.0 vs spec/support/model_parsers/representable_parser.rb in grape-swagger-0.27.1
- old
+ new
@@ -27,11 +27,11 @@
end
class EnumValues < Representable::Decorator
include Representable::JSON
- property :gender, documentation: { type: 'string', desc: 'Content of something.', values: %w(Male Female) }
+ property :gender, documentation: { type: 'string', desc: 'Content of something.', values: %w[Male Female] }
property :number, documentation: { type: 'integer', desc: 'Content of something.', values: [1, 2] }
end
class AliasedThing < Representable::Decorator
include Representable::JSON
@@ -382,11 +382,11 @@
'properties' => { 'elements' => { 'type' => 'array', 'items' => { '$ref' => '#/definitions/QueryInputElement' }, 'description' => 'Set of configuration' } },
'description' => 'nested route inside namespace'
},
'QueryInputElement' => {
'type' => 'object',
- 'required' => %w(key value),
+ 'required' => %w[key value],
'properties' => { 'key' => { 'type' => 'string', 'description' => 'Name of parameter' }, 'value' => { 'type' => 'string', 'description' => 'Value of parameter' } }
},
'ApiError' => {
'type' => 'object',
'properties' => { 'code' => { 'type' => 'integer', 'format' => 'int32', 'description' => 'status code' }, 'message' => { 'type' => 'string', 'description' => 'error message' } },
@@ -404,11 +404,11 @@
}
}
}
end
- let(:http_verbs) { %w(get post put delete) }
+ let(:http_verbs) { %w[get post put delete] }
end
def mounted_paths
- %w(/thing /other_thing /dummy)
+ %w[/thing /other_thing /dummy]
end