Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230608195429_redo_remove_create_learn_gitlab_worker_job_instances_spec.rb « migrations « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9740588912bf555da4a3f60766f2fce6b2fe388e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'
require_migration!

RSpec.describe RedoRemoveCreateLearnGitlabWorkerJobInstances, :migration, feature_category: :onboarding do
  describe '#up' do
    it 'calls sidekiq_remove_jobs with correct argument' do
      expect_next_instance_of(described_class) do |migration|
        expect(migration).to receive(:sidekiq_remove_jobs)
                               .with({ job_klasses: %w[Onboarding::CreateLearnGitlabWorker] })
      end

      migrate!
    end
  end
end