lint: fix Rubocop warnings
The Rails/UniqueValidationWithoutIndex rule is disabled for now, but we'll need to re-enable it (and fix the underlying issues) after the migration to Rails 6.
This commit is contained in:
parent
6cc76cdf05
commit
35240e2219
3 changed files with 5 additions and 7 deletions
|
@ -340,9 +340,6 @@ Lint/EmptyInterpolation:
|
||||||
Lint/EmptyWhen:
|
Lint/EmptyWhen:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Lint/EndInMethod:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EnsureReturn:
|
Lint/EnsureReturn:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
@ -794,6 +791,9 @@ Rails/TimeZone:
|
||||||
Rails/UniqBeforePluck:
|
Rails/UniqBeforePluck:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Rails/UniqueValidationWithoutIndex:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Rails/UnknownEnv:
|
Rails/UnknownEnv:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|
|
@ -92,9 +92,7 @@ class Admin::ProceduresController < AdminController
|
||||||
|
|
||||||
flash.now.notice = "La démarche a correctement été clonée vers le nouvel administrateur."
|
flash.now.notice = "La démarche a correctement été clonée vers le nouvel administrateur."
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to(&:js)
|
||||||
format.js
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ describe Admin::AttestationTemplatesController, type: :controller do
|
||||||
|
|
||||||
context 'with an interlaced png' do
|
context 'with an interlaced png' do
|
||||||
let(:upload_params) { { logo: interlaced_logo } }
|
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
|
end
|
||||||
|
|
||||||
context 'if an attestation template does not exist on the procedure' do
|
context 'if an attestation template does not exist on the procedure' do
|
||||||
|
|
Loading…
Reference in a new issue