spec/jobs.rb in asynchronic-1.2.2 vs spec/jobs.rb in asynchronic-1.3.0

- old
+ new

@@ -235,6 +235,77 @@ def call set :text, "Input was #{params[:input]}" set :value, params[:input] nil end +end + + +class NestedJobWithErrorInChild < Asynchronic::Job + + def call + async Child_1 + async Child_2 + async Child_3 + nil + end + + class Child_1 < Asynchronic::Job + def call + async Child_1_1 + async Child_1_2 + nil + end + + class Child_1_1 < Asynchronic::Job + def call + nil + end + end + + class Child_1_2 < Asynchronic::Job + def call + nil + end + end + end + + class Child_2 < Asynchronic::Job + def call + async Child_2_1 + async Child_2_2 + async Child_2_3 + nil + end + + class Child_2_1 < Asynchronic::Job + def call + nil + end + end + + class Child_2_2 < Asynchronic::Job + def call + raise "Error in Child_2_2" + end + end + + class Child_2_3 < Asynchronic::Job + def call + nil + end + end + end + + class Child_3 < Asynchronic::Job + def call + async Child_3_1 + nil + end + + class Child_3_1 < Asynchronic::Job + def call + nil + end + end + end end \ No newline at end of file