Skip to content

Commit

Permalink
Merge branch 'main' into gh-130
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnsward committed Apr 20, 2024
2 parents 48cbf4e + b23df20 commit 7607518
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/uploadcare/entity/decorator/paginator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ 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.map do |file|
file
# rubocop:disable Style/MapIntoArray
entities = []
fl_with_params.each do |file|
entities << file
end
# rubocop:enable Style/MapIntoArray
expect(entities.length).to eq fl_with_params.total
end
end
Expand Down

0 comments on commit 7607518

Please sign in to comment.