summaryrefslogtreecommitdiff
path: root/spec/workers/partition_creation_worker_spec.rb
blob: 5d15870b7f651fabb166f5545568a622b8da7a61 (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 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