From b23df20c4edce87e91b993de46cfdf922aab7a58 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Sat, 20 Apr 2024 07:01:01 -0400 Subject: [PATCH] Disable wrong rubocop failure, we actually want to call the each method to test iteration using pagination over the file list (#165) --- spec/uploadcare/entity/decorator/paginator_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/uploadcare/entity/decorator/paginator_spec.rb b/spec/uploadcare/entity/decorator/paginator_spec.rb index ca30cff..281ef4b 100644 --- a/spec/uploadcare/entity/decorator/paginator_spec.rb +++ b/spec/uploadcare/entity/decorator/paginator_spec.rb @@ -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