From b5b73c86395960008eb57644d653e188f777610b Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 6 Mar 2018 11:53:26 +0100 Subject: [PATCH] Enable all the Security cops --- .rubocop.yml | 8 ++++---- spec/jobs/auto_archive_procedure_job_spec.rb | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 5d112a4ec..ba155261a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -769,19 +769,19 @@ RSpec/Focused: Enabled: true Security/Eval: - Enabled: false + Enabled: true Security/JSONLoad: - Enabled: false + Enabled: true Security/MarshalLoad: - Enabled: false + Enabled: true Security/Open: Enabled: true Security/YAMLLoad: - Enabled: false + Enabled: true Style/Alias: Enabled: false diff --git a/spec/jobs/auto_archive_procedure_job_spec.rb b/spec/jobs/auto_archive_procedure_job_spec.rb index 2f92e5f2f..bd2fcc02d 100644 --- a/spec/jobs/auto_archive_procedure_job_spec.rb +++ b/spec/jobs/auto_archive_procedure_job_spec.rb @@ -31,9 +31,7 @@ RSpec.describe AutoArchiveProcedureJob, type: :job do before do subject - (1..9).each do |i| - eval "dossier#{i}.reload" - end + [dossier1, dossier2, dossier3, dossier4, dossier5, dossier6, dossier7, dossier8, dossier9].each(&:reload) procedure_hier.reload procedure_aujourdhui.reload