debian-mirror-gitlab/spec/workers/partition_creation_worker_spec.rb
2021-09-30 23:02:18 +05:30

18 lines
450 B
Ruby

# 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