Remove Rails/Pluck offenses

This commit is contained in:
zanetagebka
2024-06-18 14:42:53 +02:00
parent 0ebbe98f69
commit 06e453a72b
2 changed files with 1 additions and 9 deletions

View File

@@ -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.

View File

@@ -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