spec/statused_routines_spec.rb in lev-6.0.0 vs spec/statused_routines_spec.rb in lev-7.0.0

- old
+ new

@@ -30,11 +30,11 @@ end it 'completes the job object on completion, returning other data' do id = StatusedRoutine.perform_later job = Lev::BackgroundJob.find(id) - expect(job.status).to eq(Lev::BackgroundJob::STATE_COMPLETED) + expect(job.status).to eq(Lev::BackgroundJob::STATE_SUCCEEDED) expect(job.progress).to eq(1.0) end end end @@ -93,13 +93,13 @@ expect(job).not_to be_working job.working! expect(job).to be_working end - it 'is completed' do - expect(job).not_to be_completed - job.completed! - expect(job).to be_completed + it 'is succeeded' do + expect(job).not_to be_succeeded + job.succeeded! + expect(job).to be_succeeded end it 'is failed' do expect(job).not_to be_failed job.failed!