Skip to content

Commit

Permalink
Disable wrong rubocop failure, we actually want to call the each meth…
Browse files Browse the repository at this point in the history
…od to test iteration using pagination over the file list
  • Loading branch information
vipulnsward committed Apr 20, 2024
1 parent 57bce87 commit ecd1abc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/uploadcare/entity/decorator/paginator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +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)
# 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 ecd1abc

Please sign in to comment.