gitlab-org--gitlab-foss/spec/lib/gitlab/sidekiq_versioning_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
499 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-11-28 16:16:50 +00:00
require 'spec_helper'
RSpec.describe Gitlab::SidekiqVersioning, :clean_gitlab_redis_queues do
2017-11-28 16:16:50 +00:00
before do
allow(Gitlab::SidekiqConfig).to receive(:worker_queues).and_return(%w[foo bar])
2017-11-28 16:16:50 +00:00
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