Would a rule that forces using have_enqueued_job
instead of receive(:perform_later)
to check if a job was enqueued useful for others?
Like:
# Bad
allow(job_class).to receive(:perform_later)
...
expect(job_class).to have_received(:perform_later)
# Good
expect { ... }.to have_enqueued_job(job_class)