Class: RSpec::Sidekiq::Matchers::BeUnique::SidekiqUniqueJobs

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/sidekiq/matchers/be_unique.rb

Instance Method Summary collapse

Methods inherited from Base

#description, #failure_message, #failure_message_when_negated, #for, #interval_matches?, #interval_specified?, #matches?

Instance Method Details

#actual_intervalObject



58
59
60
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 58

def actual_interval
  @klass.get_sidekiq_options['unique_job_expiration']
end

#unique_keyObject



66
67
68
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 66

def unique_key
  'unique'
end

#value_matches?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 62

def value_matches?
  [true, :all].include?(@actual)
end