Fix issue Layout/SpaceInsideHashLiteralBraces

This commit is contained in:
Luis Ramos
2020-10-30 16:18:57 +00:00
parent e8138e8c23
commit c30cba8bfe
4 changed files with 3 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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