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