Sha256: a4c468e545d6ecd5a1863125e49bac693d889d793680eb280a9dc2a6aa0aeadd

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

module QueueClassicMatchers
  module TestHelper
    def run_queue name, klasses = nil
      q = QC::Queue.new(name)
      worker = TestWorker.new(q_name: name, klasses: klasses)
      while q.count > 0
        worker.work
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
queue_classic_matchers-4.0.0.alpha2 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-4.0.0.alpha1 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-1.1.0 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-1.0.2 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-0.0.4 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-0.0.3 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-0.0.2 lib/queue_classic_matchers/test_helper.rb
queue_classic_matchers-0.0.1 lib/queue_classic_matchers/test_helper.rb