2020-06-03 06:08:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 15:08:50 +00:00
|
|
|
RSpec.describe Metrics::Dashboard::ScheduleAnnotationsPruneWorker do
|
2020-06-03 06:08:34 +00:00
|
|
|
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
|