spec/lib/job_spec.rb in rector-0.0.4 vs spec/lib/job_spec.rb in rector-0.0.5

- old
+ new

@@ -11,10 +11,10 @@ worker = subject.workers.create worker.should be_a(Rector::Worker) end it "waits for workers to complete" do - backend.expects(:workers_working?).at_least_once.returns(true).then.returns(false) + backend.expects(:num_workers_working).at_least_once.returns(1).then.returns(0) subject.stubs(:sleep) Timeout.timeout(2) do subject.join end