Skip to content

Commit ab66701

Browse files
committed
Fix rubocop and update CHANGELOG
1 parent 89c4d2c commit ab66701

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### Features
44

55
* Your contribution here.
6-
* [#1791](https://github.com/ruby-grape/grape/pull/1791): Support more options in desc block - [@darren987469](https://github.com/darren987469).
6+
* [#1791](https://github.com/ruby-grape/grape/pull/1791): Support `summary`, `hidden`, `deprecated`, `is_array`, `nickname`, `produces`, `consumes`, `tags` options in `desc` block - [@darren987469](https://github.com/darren987469).
77

88
#### Fixes
99

spec/grape/dsl/desc_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class Dummy
4040
deprecated: false,
4141
is_array: true,
4242
nickname: 'nickname',
43-
produces: ['array', 'of', 'mime_types'],
44-
consumes: ['array', 'of', 'mime_types'],
45-
tags: ['tag1', 'tag2']
43+
produces: %w[array of mime_types],
44+
consumes: %w[array of mime_types],
45+
tags: %w[tag1 tag2]
4646
}
4747

4848
subject.desc 'The description' do
@@ -64,9 +64,9 @@ class Dummy
6464
deprecated false
6565
is_array true
6666
nickname 'nickname'
67-
produces ['array', 'of', 'mime_types']
68-
consumes ['array', 'of', 'mime_types']
69-
tags ['tag1', 'tag2']
67+
produces %w[array of mime_types]
68+
consumes %w[array of mime_types]
69+
tags %w[tag1 tag2]
7070
end
7171

7272
expect(subject.namespace_setting(:description)).to eq(expected_options)

0 commit comments

Comments
 (0)