wspurgin / rspec-sidekiq

RSpec for Sidekiq
https://github.com/wspurgin/rspec-sidekiq
Other
655 stars 132 forks source link

Disable all sidekiq jobs for testing #169

Closed mrothenbuhler closed 1 year ago

mrothenbuhler commented 3 years ago

Hi--is there a way to do this? We have some auto-run jobs we'd like to disable

wspurgin commented 1 year ago

If by "disable" you mean that you don't want any Sidekiq Jobs to run "for real", I think you're looking for Sidekiq::Testing.fake! which is part of Sidekiq's builtin testing framework (this framework includes it for you, and fake! is the default mode). https://github.com/sidekiq/sidekiq/wiki/testing