Module: SidekiqUniqueJobs::RSpec::Matchers

Defined in:
lib/sidekiq_unique_jobs/rspec/matchers.rb,
lib/sidekiq_unique_jobs/rspec/matchers/have_valid_sidekiq_options.rb

Overview

Module Matchers provides RSpec matcher for your workers

Author:

Defined Under Namespace

Classes: HaveValidSidekiqOptions

Instance Method Summary collapse

Instance Method Details

#have_valid_sidekiq_options(*args) ⇒ HaveValidSidekiqOptions

RSpec matcher method for validating that a sidekiq worker has valid unique/lock configuration

Returns:



46
47
48
# File 'lib/sidekiq_unique_jobs/rspec/matchers/have_valid_sidekiq_options.rb', line 46

def have_valid_sidekiq_options(*args) # rubocop:disable Naming/PredicateName
  HaveValidSidekiqOptions.new(*args)
end