leshill / resque_spec

RSpec matcher for Resque
MIT License
295 stars 86 forks source link

Resque Spec: Identify currently working job #126

Open sithara opened 7 years ago

sithara commented 7 years ago

How do we set the expectation that the worker is currently processing a job ? Can we stub the performmethod, delay and validate ?

leshill commented 7 years ago

Hi @sithara,

That might work for simulating the work load of the perform method if you have some timing issues.

What kind of problem are you trying to spec out?