You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I spent a considerable amount of time debugging why my job wasn't being scheduled, I was seeing an output like this
Failure/Error: MyWorker.should have_queued('first-param', 'second-param', 'third-param')
expected that MailDeliverer would have [first-param, second-param, third-param] queued
I wasn't finding the origin of the problem, until I realised I had a typo in the params I was sending when enqueuing the job, something like this (notice the type on 'third param'):
So what I'm proposing is to modify the matchers to make them give more details when fail, so that they say what was expected and what is being received, something like this:
Failure/Error: MyWorker.should have_queued('first-param', 'second-param', 'third-param')
expected that MyWorker would have [first-param, second-param, third-param]
queued
got MyWorker having [first-param, second-param, third param]
The text was updated successfully, but these errors were encountered:
Today I spent a considerable amount of time debugging why my job wasn't being scheduled, I was seeing an output like this
I wasn't finding the origin of the problem, until I realised I had a typo in the params I was sending when enqueuing the job, something like this (notice the type on 'third param'):
So what I'm proposing is to modify the matchers to make them give more details when fail, so that they say what was expected and what is being received, something like this:
The text was updated successfully, but these errors were encountered: