spec/taskinator/queues/sidekiq_spec.rb in taskinator-0.3.11 vs spec/taskinator/queues/sidekiq_spec.rb in taskinator-0.3.12

- old
+ new

@@ -16,11 +16,11 @@ it "enqueues" do worker = adapter::CreateProcessWorker definition = MockDefinition.create subject.enqueue_create_process(definition, uuid, :foo => :bar) - expect(worker).to have_enqueued_job(definition.name, uuid, args) + expect(worker).to have_enqueued_sidekiq_job(definition.name, uuid, args) end it "enqueues to specified queue" do subject.enqueue_create_process(MockDefinition.create(:other), uuid, :foo => :bar) expect(adapter::CreateProcessWorker).to be_processed_in_x(:other) @@ -36,11 +36,11 @@ describe "ProcessWorker" do it "enqueues processes" do worker = adapter::ProcessWorker process = double('process', :uuid => uuid, :queue => nil) subject.enqueue_process(process) - expect(worker).to have_enqueued_job(process.uuid) + expect(worker).to have_enqueued_sidekiq_job(process.uuid) end it "enqueues process to specified queue" do subject.enqueue_process(double('process', :uuid => uuid, :queue => :other)) expect(adapter::ProcessWorker).to be_processed_in_x(:other) @@ -55,10 +55,10 @@ describe "TaskWorker" do it "enqueues tasks" do worker = adapter::TaskWorker task = double('task', :uuid => uuid, :queue => nil) subject.enqueue_task(task) - expect(worker).to have_enqueued_job(task.uuid) + expect(worker).to have_enqueued_sidekiq_job(task.uuid) end it "enqueues task to specified queue" do subject.enqueue_task(double('task', :uuid => uuid, :queue => :other)) expect(adapter::TaskWorker).to be_processed_in_x(:other)