mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Remove Rails/Pluck offenses
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user