Enable the Layout/AlignParameters cop
This commit is contained in:
parent
50fad54538
commit
9439e1abb1
39 changed files with 221 additions and 220 deletions
|
@ -14,7 +14,8 @@ Layout/AlignHash:
|
|||
Enabled: false
|
||||
|
||||
Layout/AlignParameters:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
EnforcedStyle: with_fixed_indentation
|
||||
|
||||
Layout/BlockEndNewline:
|
||||
Enabled: false
|
||||
|
|
|
@ -7,6 +7,7 @@ class Admin::GestionnairesController < AdminController
|
|||
current_administrateur.gestionnaires,
|
||||
partial: "admin/gestionnaires/list",
|
||||
array: true
|
||||
|
||||
@gestionnaire ||= Gestionnaire.new
|
||||
end
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ class AdministrationsController < ApplicationController
|
|||
Administrateur.all.order(:email),
|
||||
partial: "administrations/list",
|
||||
array: true
|
||||
|
||||
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
@ -11,5 +11,4 @@ class EtablissementSerializer < ActiveModel::Serializer
|
|||
:code_postal,
|
||||
:localite,
|
||||
:code_insee_localite
|
||||
|
||||
end
|
||||
|
|
|
@ -2,6 +2,4 @@ class ModuleApiCartoSerializer < ActiveModel::Serializer
|
|||
attributes :use_api_carto,
|
||||
:quartiers_prioritaires,
|
||||
:cadastre
|
||||
|
||||
|
||||
end
|
||||
|
|
|
@ -10,7 +10,6 @@ class ProcedureSerializer < ActiveModel::Serializer
|
|||
:geographic_information,
|
||||
:total_dossier
|
||||
|
||||
|
||||
has_one :geographic_information, serializer: ModuleApiCartoSerializer
|
||||
has_many :types_de_champ, serializer: TypeDeChampSerializer
|
||||
has_many :types_de_champ_private, serializer: TypeDeChampSerializer
|
||||
|
|
|
@ -14,11 +14,14 @@ describe Backoffice::PreferenceListDossierController, type: :controller do
|
|||
|
||||
describe '#POST add' do
|
||||
subject { post :add,
|
||||
params: {libelle: libelle,
|
||||
params: {
|
||||
libelle: libelle,
|
||||
table: table,
|
||||
attr: attr,
|
||||
attr_decorate: attr_decorate,
|
||||
bootstrap_lg: bootstrap_lg} }
|
||||
bootstrap_lg: bootstrap_lg
|
||||
}
|
||||
}
|
||||
|
||||
it { expect(subject.status).to eq 200 }
|
||||
it { expect { subject }.to change(PreferenceListDossier, :count).by(1) }
|
||||
|
|
|
@ -13,10 +13,13 @@ describe Backoffice::PrivateFormulairesController, type: :controller do
|
|||
|
||||
describe '#PATCH update' do
|
||||
subject { patch :update,
|
||||
params: {dossier_id: dossier.id,
|
||||
params: {
|
||||
dossier_id: dossier.id,
|
||||
champs: {
|
||||
"'#{dossier.champs_private.first.id}'" => dossier_champs_first
|
||||
}} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
before do
|
||||
subject
|
||||
|
|
|
@ -65,8 +65,7 @@ describe 'admin/previsualisations/show.html.haml', type: :view do
|
|||
|
||||
context 'les valeurs sont réaffichées si elles sont présentes dans la BDD' do
|
||||
let!(:dossier) do
|
||||
create(:dossier,
|
||||
user: user)
|
||||
create(:dossier, user: user)
|
||||
end
|
||||
|
||||
before do
|
||||
|
|
Loading…
Reference in a new issue