Sha256: f6b4fada2f769cca77cf0cbf0e14992dc29854ecf8b44e6c36da7cf15a1243fd
Contents?: true
Size: 409 Bytes
Versions: 9
Compression:
Stored size: 409 Bytes
Contents
require 'resque-bus' require 'resque' require 'resque/scheduler' def reset_test_adapter QueueBus.send(:reset) QueueBus.adapter = QueueBus::Adapters::Resque.new end def adapter_under_test_class QueueBus::Adapters::Resque end def adapter_under_test_symbol :resque end def perform_next_job(worker, &block) return unless job = worker.reserve worker.perform(job, &block) worker.done_working end
Version data entries
9 entries across 9 versions & 1 rubygems