Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Apr 20, 2020
1 parent 97473f1 commit 9b03676
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/grape/validations/validators/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def app
context 'structures types' do
[
[Hash, {}],
[Hash, {test: 'non-empty'}],
[Hash, { test: 'non-empty' }],
[Array, []],
[Array, ['non-empty']],
[Set, []],
Expand All @@ -373,13 +373,13 @@ def app
context 'special types' do
[
[JSON, ''],
[JSON, {test: 'non-empty-json'}.to_json],
[JSON, { test: 'non-empty-json' }.to_json],
[Array[JSON], []],
[Array[JSON], [{test: 'non-empty-json'}.to_json]],
[Array[JSON], [{ test: 'non-empty-json' }.to_json]],
[::File, ''],
[::File, {test: 'non-empty-json'}.to_json],
[::File, { test: 'non-empty-json' }.to_json],
[Rack::Multipart::UploadedFile, ''],
[Rack::Multipart::UploadedFile, {test: 'non-empty-json'}.to_json]
[Rack::Multipart::UploadedFile, { test: 'non-empty-json' }.to_json]
].each do |type, default|
it 'respects the default value' do
subject.params do
Expand Down

0 comments on commit 9b03676

Please sign in to comment.