Class: RSpec::Sidekiq::Matchers::BeUnique::SidekiqEnterprise

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



72
73
74
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 72

def actual_interval
  @actual
end

#unique_keyObject



80
81
82
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 80

def unique_key
  'unique_for'
end

#value_matches?Boolean

Returns:

  • (Boolean)


76
77
78
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 76

def value_matches?
  @actual && @actual > 0
end