blob: fd56c9a0988a9af16d7676987f92cbd349fa47f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe RemoveFreeUserCapEmailWorkers, :migration, feature_category: :onboarding do
describe '#up' do
it 'calls sidekiq_remove_jobs with correct argument' do
deprecated_job_classes = %w[
Namespaces::FreeUserCap::BackfillNotificationClearingJobsWorker
Namespaces::FreeUserCap::BackfillNotificationJobsWorker
Namespaces::FreeUserCap::NotificationClearingWorker
Namespaces::FreeUserCap::OverLimitNotificationWorker
]
expect_next_instance_of(described_class) do |migration|
expect(migration).to receive(:sidekiq_remove_jobs)
.with({ job_klasses: deprecated_job_classes })
end
migrate!
end
end
end
|