spec/worker/worker_examples.rb in asynchronic-0.1.0 vs spec/worker/worker_examples.rb in asynchronic-0.2.0
- old
+ new
@@ -4,10 +4,10 @@
let(:queue_name) { :test_worker }
let(:queue) { env.queue queue_name }
def enqueue_processes
processes = 5.times.map do
- env.build_process(WorkerJob, queue: :test_worker).tap(&:enqueue)
+ env.create_process(WorkerJob, queue: :test_worker).tap(&:enqueue)
end
queue.must_enqueued processes
processes.each { |p| p.must_be :queued? }
\ No newline at end of file