move all the cron jobs in a dedicated directory

This commit is contained in:
clemkeirua 2020-11-13 14:34:53 +01:00 committed by LeSim (Rebase PR Action)
parent 977736e5d4
commit 513d4f6ff1
23 changed files with 34 additions and 34 deletions

View file

@ -455,7 +455,7 @@ describe Instructeur, type: :model do
before do
procedure_to_assign.update(declarative_with_state: "en_instruction")
DeclarativeProceduresJob.new.perform
Cron::DeclarativeProceduresJob.new.perform
dossier.reload
end
@ -480,7 +480,7 @@ describe Instructeur, type: :model do
before do
procedure_to_assign.update(declarative_with_state: "accepte")
DeclarativeProceduresJob.new.perform
Cron::DeclarativeProceduresJob.new.perform
dossier.reload
end
@ -497,7 +497,7 @@ describe Instructeur, type: :model do
before do
procedure_to_assign.update(declarative_with_state: "accepte")
DeclarativeProceduresJob.new.perform
Cron::DeclarativeProceduresJob.new.perform
dossier.traitements.last.update(processed_at: Time.zone.yesterday.beginning_of_day)
dossier.reload
end