diff --git a/.rubocop.yml b/.rubocop.yml index 0be36f46e..bdeea2d8f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -340,9 +340,6 @@ Lint/EmptyInterpolation: Lint/EmptyWhen: Enabled: true -Lint/EndInMethod: - Enabled: true - Lint/EnsureReturn: Enabled: false @@ -794,6 +791,9 @@ Rails/TimeZone: Rails/UniqBeforePluck: Enabled: true +Rails/UniqueValidationWithoutIndex: + Enabled: false + Rails/UnknownEnv: Enabled: false diff --git a/app/controllers/admin/procedures_controller.rb b/app/controllers/admin/procedures_controller.rb index 827d7542a..3b2401e36 100644 --- a/app/controllers/admin/procedures_controller.rb +++ b/app/controllers/admin/procedures_controller.rb @@ -92,9 +92,7 @@ class Admin::ProceduresController < AdminController flash.now.notice = "La démarche a correctement été clonée vers le nouvel administrateur." - respond_to do |format| - format.js - end + respond_to(&:js) end end diff --git a/spec/controllers/admin/attestation_templates_controller_spec.rb b/spec/controllers/admin/attestation_templates_controller_spec.rb index 62ceb1599..7e29ab04e 100644 --- a/spec/controllers/admin/attestation_templates_controller_spec.rb +++ b/spec/controllers/admin/attestation_templates_controller_spec.rb @@ -40,7 +40,7 @@ describe Admin::AttestationTemplatesController, type: :controller do context 'with an interlaced png' do let(:upload_params) { { logo: interlaced_logo } } - #it { expect(procedure.attestation_template.logo.download).to eq(uninterlaced_logo.read) } + it { expect(procedure.attestation_template.logo.download).to eq(uninterlaced_logo.read) } end context 'if an attestation template does not exist on the procedure' do