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

partition_creation_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 625e86ad8526354d54e516b5b2695c9655b82d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe PartitionCreationWorker, feature_category: :database do
  subject { described_class.new.perform }

  let(:management_worker) { double }

  describe '#perform' do
    it 'forwards to the Database::PartitionManagementWorker' do
      expect(Database::PartitionManagementWorker).to receive(:new).and_return(management_worker)
      expect(management_worker).to receive(:perform)

      subject
    end
  end
end