mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix issue Layout/SpaceInsideHashLiteralBraces
This commit is contained in:
@@ -6,17 +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: 11
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||
# SupportedStyles: space, no_space, compact
|
||||
# SupportedStylesForEmptyBraces: space, no_space
|
||||
Layout/SpaceInsideHashLiteralBraces:
|
||||
Exclude:
|
||||
- 'spec/requests/api/orders_spec.rb'
|
||||
- 'spec/services/checkout/form_data_adapter_spec.rb'
|
||||
- 'spec/services/user_locale_setter_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
||||
@@ -24,7 +24,7 @@ describe 'api/orders', type: :request do
|
||||
# issue with rswag: https://github.com/rswag/rswag/issues/268
|
||||
metadata[:response][:content] = {
|
||||
"application/json": {
|
||||
schema: {'$ref' => '#/components/schemas/Order_Concise'}
|
||||
schema: { '$ref' => '#/components/schemas/Order_Concise' }
|
||||
}
|
||||
}
|
||||
context "when there are four orders with different properties set" do
|
||||
|
||||
@@ -38,7 +38,7 @@ describe Checkout::FormDataAdapter do
|
||||
|
||||
describe "and a credit card is provided" do
|
||||
before do
|
||||
params[:order][:payments_attributes].first[:source_attributes] = {number: "4444333322221111"}
|
||||
params[:order][:payments_attributes].first[:source_attributes] = { number: "4444333322221111" }
|
||||
end
|
||||
|
||||
it "fills in missing credit card brand" do
|
||||
|
||||
@@ -108,7 +108,7 @@ describe UserLocaleSetter do
|
||||
end
|
||||
|
||||
context "with a locale set in cookies" do
|
||||
let(:cookies) { {locale: "es"} }
|
||||
let(:cookies) { { locale: "es" } }
|
||||
|
||||
it "set the user's locale to the cookie value" do
|
||||
service.ensure_valid_locale_persisted
|
||||
|
||||
Reference in New Issue
Block a user