Fix rubocop issue Layout/FirstHashElementIndentation

This commit is contained in:
Luis Ramos
2020-10-30 16:02:25 +00:00
parent 9cb3b0b14a
commit a8265aff89
3 changed files with 7 additions and 16 deletions

View File

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

View File

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

View File

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