blob: b5775f376784be855f3294f06da6b579831f3613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Projects::ScheduleRefreshBuildArtifactsSizeStatisticsWorker do
subject(:worker) { described_class.new }
describe '#perform' do
include_examples 'an idempotent worker' do
it 'schedules Projects::RefreshBuildArtifactsSizeStatisticsWorker to be performed with capacity' do
expect(Projects::RefreshBuildArtifactsSizeStatisticsWorker).to receive(:perform_with_capacity).twice
subject
end
end
end
end
|