Sha256: 8363b584af45f5a2185bb50e0b6df77ad625a9ffac889ec98cb4851f73f75ebf

Contents?: true

Size: 493 Bytes

Versions: 16

Compression:

Stored size: 493 Bytes

Contents

require 'helper'
require 'sidekiq/fetch'

class TestFetcher < MiniTest::Unit::TestCase
  describe 'Fetcher#queues_cmd' do
    describe 'when queues are strictly ordered' do
      it 'returns the unique ordered queues properly based on priority and order they were passed in' do
        fetcher = Sidekiq::Fetcher.new nil, %w[high medium low default], true
        assert_equal (%w[queue:high queue:medium queue:low queue:default] << 1), fetcher._send_(:queues_cmd)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sidekiq-2.6.2 test/test_fetch.rb
sidekiq-2.6.1 test/test_fetch.rb
sidekiq-2.6.0 test/test_fetch.rb
sidekiq-2.5.4 test/test_fetch.rb
sidekiq-2.5.3 test/test_fetch.rb
sidekiq-2.5.2 test/test_fetch.rb
sidekiq-2.5.1 test/test_fetch.rb
sidekiq-2.5.0 test/test_fetch.rb
sidekiq-2.4.0 test/test_fetch.rb
sidekiq-2.3.3 test/test_fetch.rb
sidekiq-2.3.2 test/test_fetch.rb
sidekiq-2.3.1 test/test_fetch.rb
sidekiq-2.3.0 test/test_fetch.rb
sidekiq-2.2.1 test/test_fetch.rb
sidekiq-2.2.0 test/test_fetch.rb
sidekiq-2.1.1 test/test_fetch.rb