justinweiss/resque_unit — pull request #24 by nfo (2011-10-21 15:05:34+00:00)
Title: Fixed `Resque::Scheduler.enqueue_with_timestamp`

`Resque::Scheduler.enqueue_with_timestamp` must give the name of the worker class, not the class itself, like in `Resque.enqueue_to`. I don't know why there is no problem in tests, but when I try to use enqueue_in or enqueue_at in my project, this object

```ruby
{"class"=>MyWorker, "args"=>[{"_id"=>"u123", "email"=>"lol@cats.com"}], "timestamp"=>2011-10-04 12:35:01 +0200}
```

is encoded into:

```json
{"class":{"inheritable_attributes":{},"queue":"my_queue","args":[{"_id":"u123","email":"lol@cats.com"}],"timestamp":"2011-10-04T12:35:01+02:00"}
```

instead of:

```json
{"class":"MyWorker","args":[{"_id":"u123","email":"lol@cats.com"}],"timestamp":"2011-10-04T12:37:42+02:00"}
```