wspurgin / rspec-sidekiq

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

Sidekiq Enterprise: until matcher #147

Open leviwilson opened 6 years ago

leviwilson commented 6 years ago

Description

In Sidekiq Enterprise's Unique Jobs feature, you have the ability to specify an unlock policy.

This PR adds an until matcher so that you may specify an expectation against a worker for it like so:

describe MuhWorker do
  it { should be_unique.until(:success) }
end

It also will fail that it is not supported if a user tries to use it with SidekiqUniqueJobs.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.03%) to 98.652% when pulling 7ff2c85476b026322523a5577902fc1f07eafcc2 on northwoodspd:sidekiq_pro_until_matcher into 807cb1314bb284fb7ea64dc08cbab0896b16f74f on philostler:develop.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.03%) to 98.652% when pulling 7ff2c85476b026322523a5577902fc1f07eafcc2 on northwoodspd:sidekiq_pro_until_matcher into 807cb1314bb284fb7ea64dc08cbab0896b16f74f on philostler:develop.