diff --git a/app/jobs/cron/purge_old_brouillon_dossiers_job.rb b/app/jobs/cron/hide_old_brouillon_dossiers_job.rb similarity index 89% rename from app/jobs/cron/purge_old_brouillon_dossiers_job.rb rename to app/jobs/cron/hide_old_brouillon_dossiers_job.rb index a70e17cdc..aba3a29a9 100644 --- a/app/jobs/cron/purge_old_brouillon_dossiers_job.rb +++ b/app/jobs/cron/hide_old_brouillon_dossiers_job.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class Cron::PurgeOldBrouillonDossiersJob < Cron::CronJob +class Cron::HideOldBrouillonDossiersJob < Cron::CronJob self.schedule_expression = "every day at 5:30" def perform diff --git a/spec/jobs/cron/purge_old_brouillon_dossiers_job_spec.rb b/spec/jobs/cron/hide_old_brouillon_dossiers_job_spec.rb similarity index 97% rename from spec/jobs/cron/purge_old_brouillon_dossiers_job_spec.rb rename to spec/jobs/cron/hide_old_brouillon_dossiers_job_spec.rb index 90255dc70..de52344a3 100644 --- a/spec/jobs/cron/purge_old_brouillon_dossiers_job_spec.rb +++ b/spec/jobs/cron/hide_old_brouillon_dossiers_job_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -RSpec.describe Cron::PurgeOldBrouillonDossiersJob, type: :job do +RSpec.describe Cron::HideOldBrouillonDossiersJob, type: :job do let(:procedure) { create(:procedure) } let!(:recent_brouillon) { travel_to(3.months.ago) { create(:dossier, :brouillon, procedure: procedure, notified_soon_deleted_sent_at: 3.weeks.ago) } }