It's not really a true mock object. It's just building a true Job instance w/o needing all attributes specified.
Notably, Myron was having problems in tabbed view with his failure types, and so we had to do some attribute sanitization. Also, each of the cancel buttons turns into a 'cancel?' confirmation button before jobs can be canceled. This will help me sleep at night. Lastly, the alerts now longer annoyingly shift all the text around. I did this by using the 'noty' jQuery plugin.
These are classes that implement a specific job reservation strategy.
I'm going to build a Worker class next. The worker attributes of these different objects are really just the name of the worker, not the worker object itself, so it makes sense to name the attribute worker_name to make that more clear.
- @dependents, not @depenents - `unless ... !=` is a double negative and is confusing. `if ... ==` is more clear.
See http://myronmars.to/n/dev-blog/2012/03/faster-test-boot-times-with-bundler-standalone for details on this approach.
The specs all integrate with redis and the qless-core lua scripts.
This is important when you need to have it hit a different redis.