We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97473f1 commit 9b03676Copy full SHA for 9b03676
spec/grape/validations/validators/default_spec.rb
@@ -349,7 +349,7 @@ def app
349
context 'structures types' do
350
[
351
[Hash, {}],
352
- [Hash, {test: 'non-empty'}],
+ [Hash, { test: 'non-empty' }],
353
[Array, []],
354
[Array, ['non-empty']],
355
[Set, []],
@@ -373,13 +373,13 @@ def app
373
context 'special types' do
374
375
[JSON, ''],
376
- [JSON, {test: 'non-empty-json'}.to_json],
+ [JSON, { test: 'non-empty-json' }.to_json],
377
[Array[JSON], []],
378
- [Array[JSON], [{test: 'non-empty-json'}.to_json]],
+ [Array[JSON], [{ test: 'non-empty-json' }.to_json]],
379
[::File, ''],
380
- [::File, {test: 'non-empty-json'}.to_json],
+ [::File, { test: 'non-empty-json' }.to_json],
381
[Rack::Multipart::UploadedFile, ''],
382
- [Rack::Multipart::UploadedFile, {test: 'non-empty-json'}.to_json]
+ [Rack::Multipart::UploadedFile, { test: 'non-empty-json' }.to_json]
383
].each do |type, default|
384
it 'respects the default value' do
385
subject.params do
0 commit comments