diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a7c8cd1ee2..3a6ae79a91 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -634,12 +634,6 @@ Rails/LexicallyScopedActionFilter: - 'app/controllers/spree/admin/zones_controller.rb' - 'app/controllers/spree/users_controller.rb' -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Rails/Pluck: - Exclude: - - 'spec/lib/reports/lettuce_share_report_spec.rb' - # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. diff --git a/spec/lib/reports/lettuce_share_report_spec.rb b/spec/lib/reports/lettuce_share_report_spec.rb index 1501ffc778..6b54261274 100644 --- a/spec/lib/reports/lettuce_share_report_spec.rb +++ b/spec/lib/reports/lettuce_share_report_spec.rb @@ -79,9 +79,7 @@ module Reporting } rows = report.table_rows expect(rows.count).to eq 2 - expect(rows.map{ |row| - row[0] - } ).to include variant.product.name, variant2.product.name + expect(rows.pluck(0) ).to include variant.product.name, variant2.product.name end end end