lib/sidekiq/testing.rb in sidekiq-1.1.4 vs lib/sidekiq/testing.rb in sidekiq-1.2.0

- old
+ new

@@ -31,8 +31,14 @@ end def jobs @pushed ||= [] end + + def drain + while job = jobs.shift do + new.perform(*job['args']) + end + end end end end