Commit 4323b1c3 authored by Simon Tomlinson's avatar Simon Tomlinson Committed by Andreas Brandl

Forward PartitionCreationWorker to new worker

parent eec02105
...@@ -10,6 +10,7 @@ class PartitionCreationWorker ...@@ -10,6 +10,7 @@ class PartitionCreationWorker
idempotent! idempotent!
def perform def perform
# Removed in favor of Database::PartitionManagementWorker # This worker has been removed in favor of Database::PartitionManagementWorker
Database::PartitionManagementWorker.new.perform
end end
end end
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment