Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Log active_job potential matches when asserting #36920
Adds logging of potential matches when calling
When testing ActiveJob, it's quite helpful to view the jobs that were performed (or enqueued) when these assertions fail.
The added context makes it much easier to determine the source of failure (wrong job, jobs, wrong params, wrong queue, etc).
I think I would also prefer a line break in the output: