Rename purge => hide

This commit is contained in:
Mathieu Magnin 2024-12-06 16:34:21 +01:00
parent 760963a52d
commit 5555da2f90
No known key found for this signature in database
GPG key ID: 8DCAFC82D7BA654E
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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) } }