test/fixtures/hooked.rb in backburner-1.1.0 vs test/fixtures/hooked.rb in backburner-1.2.0.pre
- old
+ new
@@ -112,5 +112,11 @@
$hooked_fail_count += 1
raise HookFailError, "Fail!" if $hooked_fail_count == 1
puts "This is the job running successfully!! #{x.inspect}"
end
end # HookedObjectSuccess
+
+class HookedWorker < Backburner::Worker
+ def on_reconnect
+ puts "!!on_reconnect!!"
+ end
+end