mperham/sidekiq — pull request #320 by flexoid (2012-07-29 15:36:27+00:00)
Title: Added perform_next and has_queued? methods to help in testing

`perform_next` just pops the first job from the queue and performs it.
`drain` has been rewritten to use it to stay DRY.

```ruby
HardWorker.perform_async(id)
HardWorker.perform_next
```
---

`has_queued?` checks jobs array for enqueued job with specified arguments.

```ruby
DirectWorker.perform_async(3, 4)
DirectWorker.has_queued?(3, 4)
=> true
```