mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Correct Style/RedundantInitialize rubocop offense
This commit is contained in:
@@ -669,13 +669,6 @@ Style/OptionalBooleanParameter:
|
||||
- 'lib/spree/core/controller_helpers/order.rb'
|
||||
- 'spec/support/request/web_helper.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: AutoCorrect, AllowComments.
|
||||
Style/RedundantInitialize:
|
||||
Exclude:
|
||||
- 'spec/models/spree/gateway_spec.rb'
|
||||
|
||||
# Offense count: 19
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
||||
|
||||
@@ -7,7 +7,7 @@ RSpec.describe Spree::Gateway do
|
||||
Class.new(Spree::Gateway) do
|
||||
def provider_class
|
||||
Class.new do
|
||||
def initialize(options = {}); end
|
||||
def initialize(*); end
|
||||
|
||||
def imaginary_method; end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user