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

- old
+ new

@@ -31,11 +31,11 @@ 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.progress).to eq(0.9) + expect(job.progress).to eq(1.0) end end end describe '#save' do @@ -49,10 +49,11 @@ it 'adds the error object data to the job object' do errors = Lev::Error.new(code: 'bad', message: 'awful') job.add_error(errors) expect(job.errors).to eq([{ is_fatal: false, code: 'bad', - message: 'awful' }]) + message: 'awful', + data: nil }]) end end describe '#save' do it 'prevents the use of reserved keys' do