summaryrefslogtreecommitdiff
path: root/spec/workers/metrics/dashboard/schedule_annotations_prune_worker_spec.rb
blob: bfe6fe3a90ee35bb6d0c809e6e9b87868fc1c3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe Metrics::Dashboard::ScheduleAnnotationsPruneWorker do
  describe '#perform' do
    it 'schedules annotations prune job with default cut off date' do
      expect(Metrics::Dashboard::PruneOldAnnotationsWorker).to receive(:perform_async)

      described_class.new.perform
    end
  end
end