philostler/rspec-sidekiq — pull request #17 by kmayer (2013-08-29 16:49:09+00:00)
Title: Add stub support for Sidekiq::Batch

- Sidekiq::Batch is a SidekiqPro feature -- well worth it, btw.
- Use a NullObject pattern to replace the implementation
- Does nothing if you don't have Sidekiq::Pro

References:

- https://github.com/mperham/sidekiq/wiki/Batches
- https://github.com/mperham/sidekiq/issues/493
- http://devblog.avdi.org/2011/05/30/null-objects-and-falsiness/

Approval

- Mike Perham