I am migrating from Delayed Jobs to Sidekiq. There are some spec that I already have and I also want to change them to become compatible with sidekiq.
it { expect(Delayed::Job.select{|job| job.handler.match(/MyJob/)}.size).to be 0 }
This basically checks that there are no MyJob DelayJobs scheduled. How can I test the same thing for the same job in sidekiq.