Rename purge => hide
This commit is contained in:
parent
760963a52d
commit
5555da2f90
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Cron::PurgeOldBrouillonDossiersJob < Cron::CronJob
|
class Cron::HideOldBrouillonDossiersJob < Cron::CronJob
|
||||||
self.schedule_expression = "every day at 5:30"
|
self.schedule_expression = "every day at 5:30"
|
||||||
|
|
||||||
def perform
|
def perform
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe Cron::PurgeOldBrouillonDossiersJob, type: :job do
|
RSpec.describe Cron::HideOldBrouillonDossiersJob, type: :job do
|
||||||
let(:procedure) { create(:procedure) }
|
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) } }
|
let!(:recent_brouillon) { travel_to(3.months.ago) { create(:dossier, :brouillon, procedure: procedure, notified_soon_deleted_sent_at: 3.weeks.ago) } }
|
Loading…
Reference in a new issue