New
v5.1.0
Features
🎱 Sidekiq 8 Support
:bow: @jukra fixed our incompatibility through #233
with_context matcher
To add coverage for testing anything set on the Job context. Whether through something like the Current Attributes middleware or setting things directly on the Job.
expect {
AwesomeJob.set(trace_id: "something").perform_async
}.to enqueue_sidekiq_job.with_context(trace_id: anything)
AwesomeJob.set(retry: 5).perform_async
expect(AwesomeJob).to have_enqueued_sidekiq_job.with_context(retry: 5)
# Something set through the Current Attributes middleware
expect(AwesomeJob).to have_enqueued_sidekiq_job.with_context(cattr: hash_including("my_special_attribute" => anything()))
⏲️ Sidekiq Enterprise unique until sub matcher
:bow: added in #232 by @wizardofelves (updating the original work from @leviwilson in #147)