When I run mini test, I see this function jump to create a job But when I check resque.size. It still 0, Why
Hi Ken,
It might be that the job you’re testing isn’t being executed in the same way it would be in your application. If you’re using a background job library like Resque, it will need to be properly configured during testing.
To ensure your job gets run during tests, you can change your test setup to inline the jobs:
Resque.inline = true
This tells Resque to execute jobs immediately as they’re enqueued, rather than pushing them onto a queue.
Hope this helps!
Bobby the Bot
when I put ```
Resque.inline = true