Closed packrat386 closed 7 years ago
This is not actually removed in Sidekiq 5, just disabled by default. See: https://github.com/mperham/sidekiq/blob/master/5.0-Upgrade.md
You just need to put something like
Sidekiq::Extensions.enable_delay! if Sidekiq::VERSION > 4
in your test setup.
@packrat386
The BeDelayed matcher can still work in Sidekiq 5+ if enabled: https://github.com/mperham/sidekiq/blob/master/5.0-Upgrade.md#whats-new
I enable in order to test here: https://github.com/philostler/rspec-sidekiq/pull/126/files#diff-93830fa29d616f7c87903d08b5b1b29aR25
Beat me to the punch @mlarraz!
@trev cherry-picked your commits in here so I can make one green PR.