diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5f5f41d6d9..a0e7c3f051 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,15 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_braces -Layout/FirstHashElementIndentation: - Exclude: - - 'spec/models/spree/payment_spec.rb' - - 'spec/swagger_helper.rb' - # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index e3cebf2c6b..b4e1e06fe8 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -589,10 +589,10 @@ describe Spree::Payment do it "should build the payment's source" do params = { :amount => 100, :payment_method => gateway, :source_attributes => { - :expiry =>"1 / 99", - :number => '1234567890123', - :verification_value => '123' - } + :expiry =>"1 / 99", + :number => '1234567890123', + :verification_value => '123' + } } payment = Spree::Payment.new(params) diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index 0bf64f9ced..f6916c5d31 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -17,9 +17,9 @@ Check out our repo! https://github.com/openfoodfoundation/openfoodnetwork', components: { securitySchemes: { api_key: { - type: :apiKey, - name: 'X-Spree-Token', - in: :header + type: :apiKey, + name: 'X-Spree-Token', + in: :header } }, schemas: {