spec/jobs.rb in asynchronic-1.6.0 vs spec/jobs.rb in asynchronic-1.6.1
- old
+ new
@@ -381,5 +381,17 @@
def before_finalize
set :key, get(:key) + 1
end
end
+
+class BeforeFinalizeRaisesExceptionJob < Asynchronic::Job
+
+ def call
+ nil
+ end
+
+ def before_finalize
+ raise 'Before finalize exception'
+ end
+
+end
\ No newline at end of file