leshill/resque_spec — Issue #36: resque spec does not exactly reproduce redis
Author: andreacfm
Created: 2011-12-23 16:59:39+00:00
State: open

I am using resque to process emails queues.
I normally store via resque only the id that I need to then process the email.
My mailers looks like:

def method(id)
@model = Model.find id
end

Issue is that if I have a bug in my code that pass to rsque not an id but an istance of Model my test will pass while when code is executed via Redis fails. This is due to the fact that :

Model.find id #works even if id is an instance of model

Any suggestion?