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

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

require 'spec_helper'

RSpec.describe Gitlab::SidekiqVersioning, :clean_gitlab_redis_queues do
  before do
    allow(Gitlab::SidekiqConfig).to receive(:worker_queues).and_return(%w[foo bar])
  end

  describe '.install!' do
    it 'registers all versionless and versioned queues with Redis' do
      described_class.install!

      queues = Sidekiq::Queue.all.map(&:name)
      expect(queues).to include('foo')
      expect(queues).to include('bar')
    end
  end
end