Skip to content

Commit

Permalink
Fix Rubocop on violation Style/MapIntoArray, introduced by Ruby 3.3.x…
Browse files Browse the repository at this point in the history
… latest verions of rubocop
  • Loading branch information
vipulnsward committed Apr 19, 2024
1 parent f9b91ce commit 48cbf4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/uploadcare/entity/decorator/paginator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ module Decorator
it 'iterates each file in list' do
VCR.use_cassette('rest_file_list_each') do
fl_with_params = FileList.file_list(limit: 2)
entities = []
fl_with_params.each do |file|
entities << file
entities = fl_with_params.map do |file|
file
end
expect(entities.length).to eq fl_with_params.total
end
Expand Down

0 comments on commit 48cbf4e

Please sign in to comment.