leshill/resque_spec — pull request #62 by lukemelia (2012-10-31 19:22:34+00:00)
Title: Add times chain

Allow assertion on number of times a job is queued.

``` ruby
# Example:
before do
Resque.enqueue(Person, first_name, last_name)
end

it { should have_queued(first_name, last_name).once }
it { should have_queued(first_name, last_name).times(1) }
it { should_not have_queued(first_name, last_name).times(2) }

```