Fixed bug in resque mock