spec/process/life_cycle_examples.rb in asynchronic-0.2.3 vs spec/process/life_cycle_examples.rb in asynchronic-0.3.0
- old
+ new
@@ -381,6 +381,24 @@
process[ForwardReferenceJob::SendReferenceJob].must_be_completed
process[ForwardReferenceJob::SendReferenceJob][ForwardReferenceJob::UseReferenceJob].must_be_completed
queue.must_be_empty
end
+ it 'Job with retries' do
+ process = create WithRetriesJob
+
+ process.must_be_initialized
+ queue.must_be_empty
+
+ process.enqueue
+
+ process.must_be_queued
+ queue.must_enqueued process
+
+ execute queue
+
+ process.must_be_completed
+ process.result.must_equal 3
+ queue.must_be_empty
+ end
+
end
\ No newline at end of file