leshill/resque_spec — pull request #88 by mcfiredrill (2013-11-26 04:31:15+00:00)
Title: rescue exceptions and run job.fail in perform

I needed to test some of my resque failure code, but I realized that Resque::Job#fail is not actually run if you are using inline. I think using ResqueSpec.inline simplifies testing quite a bit, so I wanted to use it, but I still needed failures to be reported. So I wrote this patch. I'm not sure if this fits everyones use case, or if this is even the right way to go about it.

Let me know what you think.