debian-mirror-gitlab/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
479 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
2021-09-30 23:02:18 +05:30
#
require 'spec_helper'
2020-07-28 23:09:34 +05:30
2023-05-27 22:25:52 +05:30
RSpec.describe PartitionCreationWorker, feature_category: :database do
2021-09-30 23:02:18 +05:30
subject { described_class.new.perform }
2020-07-28 23:09:34 +05:30
2021-09-30 23:02:18 +05:30
let(:management_worker) { double }
2020-07-28 23:09:34 +05:30
2021-09-30 23:02:18 +05:30
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)
2020-11-24 15:15:51 +05:30
subject
2020-07-28 23:09:34 +05:30
end
end
end