If you installed Sidekiq to use inline processing when running tests like this:
require 'sidekiq/testing'
Sidekiq::Testing.inline!
Then the following should work in your specs:
expect(CustomSideWorker).to receive(:perform_in).with(5.minutes, parameter1)
source
to share