Skip to content

Commit 8dbcc9d

Browse files
committed
Fix rubocop
1 parent 8c4b63b commit 8dbcc9d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

spec/grape-swagger/entities/response_model_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ def app
5959
'relation' => { '$ref' => '#/definitions/ThisApi::Entities::Relation', 'description' => 'A related model.' },
6060
'code' => { 'type' => 'string', 'description' => 'Error code' },
6161
'message' => { 'type' => 'string', 'description' => 'Error message' },
62-
'attr' => { 'type' => 'string', 'description' => 'Attribute' }},
62+
'attr' => { 'type' => 'string', 'description' => 'Attribute' } },
6363
'required' => ['attr']
6464
)
6565

6666
expect(subject['definitions'].keys).to include 'ThisApi::Entities::Kind'
6767
expect(subject['definitions']['ThisApi::Entities::Kind']).to eq(
68-
'type' => 'object', 'properties' => { 'title' => { 'type' => 'string', 'description' => 'Title of the kind.'}, "content"=>{"description"=>"Content", "type"=>"string", "x-some"=>"stuff"} }
68+
'type' => 'object', 'properties' => { 'title' => { 'type' => 'string', 'description' => 'Title of the kind.' }, 'content' => { 'description' => 'Content', 'type' => 'string', 'x-some' => 'stuff' } }
6969
)
7070

7171
expect(subject['definitions'].keys).to include 'ThisApi::Entities::Relation'

spec/grape-swagger/entity/attribute_parser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
end
6363

6464
context 'when it contains extensions' do
65-
let(:entity_options) { { documentation: { type: 'string', desc: 'Colors', x: {some: 'stuff'} } } }
65+
let(:entity_options) { { documentation: { type: 'string', desc: 'Colors', x: { some: 'stuff' } } } }
6666

6767
it { is_expected.to include('x-some' => 'stuff') }
6868
end

spec/support/shared_contexts/this_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module ThisApi
44
module Entities
55
class Kind < Grape::Entity
66
expose :title, documentation: { type: 'string', desc: 'Title of the kind.' }
7-
expose :content, documentation: {type: 'string', desc: 'Content', x: {some: 'stuff'}}
7+
expose :content, documentation: { type: 'string', desc: 'Content', x: { some: 'stuff' } }
88
end
99

1010
class Relation < Grape::Entity

0 commit comments

Comments
 (0)