move all the cron jobs in a dedicated directory
This commit is contained in:
parent
977736e5d4
commit
513d4f6ff1
23 changed files with 34 additions and 34 deletions
|
@ -51,7 +51,7 @@ describe NotificationService do
|
|||
let!(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
before do
|
||||
procedure.update(declarative_with_state: "en_instruction")
|
||||
DeclarativeProceduresJob.new.perform
|
||||
Cron::DeclarativeProceduresJob.new.perform
|
||||
dossier.reload
|
||||
end
|
||||
|
||||
|
@ -65,7 +65,7 @@ describe NotificationService do
|
|||
let!(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
before do
|
||||
procedure.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
|
||||
|
@ -80,7 +80,7 @@ describe NotificationService do
|
|||
let!(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
||||
before do
|
||||
procedure.update(declarative_with_state: "accepte")
|
||||
DeclarativeProceduresJob.new.perform
|
||||
Cron::DeclarativeProceduresJob.new.perform
|
||||
dossier.reload
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue