Enable all the Security cops

This commit is contained in:
gregoirenovel 2018-03-06 11:53:26 +01:00
parent 536226d01e
commit b5b73c8639
2 changed files with 5 additions and 7 deletions

View file

@ -769,19 +769,19 @@ RSpec/Focused:
Enabled: true Enabled: true
Security/Eval: Security/Eval:
Enabled: false Enabled: true
Security/JSONLoad: Security/JSONLoad:
Enabled: false Enabled: true
Security/MarshalLoad: Security/MarshalLoad:
Enabled: false Enabled: true
Security/Open: Security/Open:
Enabled: true Enabled: true
Security/YAMLLoad: Security/YAMLLoad:
Enabled: false Enabled: true
Style/Alias: Style/Alias:
Enabled: false Enabled: false

View file

@ -31,9 +31,7 @@ RSpec.describe AutoArchiveProcedureJob, type: :job do
before do before do
subject subject
(1..9).each do |i| [dossier1, dossier2, dossier3, dossier4, dossier5, dossier6, dossier7, dossier8, dossier9].each(&:reload)
eval "dossier#{i}.reload"
end
procedure_hier.reload procedure_hier.reload
procedure_aujourdhui.reload procedure_aujourdhui.reload