Welcome to mirror list, hosted at ThFree Co, Russian Federation.

schedule_refresh_build_artifacts_size_statistics_worker_spec.rb « projects « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d5d46afab0d38b0ca4bfc420e09a5c523f54964 (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, feature_category: :build_artifacts do
  subject(:worker) { described_class.new }

  describe '#perform' do
    it_behaves_like '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