Class: RSpec::Sidekiq::Matchers::BeUnique
- Inherits:
-
Object
- Object
- RSpec::Sidekiq::Matchers::BeUnique
- Defined in:
- lib/rspec/sidekiq/matchers/be_unique.rb
Defined Under Namespace
Classes: Base, SidekiqEnterprise, SidekiqUniqueJobs
Class Method Summary collapse
Class Method Details
.new ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 9 def self.new if defined?(::Sidekiq::Enterprise) SidekiqEnterprise.new elsif defined?(::SidekiqUniqueJobs) SidekiqUniqueJobs.new else fail "No support found for Sidekiq unique jobs" end end |