gitlab-org--gitlab-foss/spec/workers/partition_creation_worker_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
450 B
Ruby
Raw Normal View History

# 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