mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Fix rubocop issue Layout/FirstHashElementIndentation
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user