mperham/sidekiq — pull request #25 by kalv (2012-02-14 21:13:15+00:00)
Title: When writing multiple test blocks the jobs size was incorrect

I have just transitioned a project using resque to use sidekiq (which is awesome!) but I couldn't see a nice way to reset the jobs array being kept when running tests.

Have therefore added a 'reset_jobs!' method to clear the jobs collected. If there was another way to do this do let me know.

Also the test added to sidekiq would've been a separate but I had trouble re-applying the alias_method for perform_async. So i guess sorry for adding the assertion to an existing test block.