Class: RSpec::Sidekiq::Matchers::BeUnique::SidekiqEnterprise
- Inherits:
-
Base
- Object
- Base
- RSpec::Sidekiq::Matchers::BeUnique::SidekiqEnterprise
show all
- Defined in:
- lib/rspec/sidekiq/matchers/be_unique.rb
Instance Method Summary
collapse
Methods inherited from Base
#description, #expiration_matches?, #failure_message, #failure_message_when_negated, #for, #interval_matches?, #interval_specified?, #matches?, #until
Instance Method Details
#actual_expiration ⇒ Object
94
95
96
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 94
def actual_expiration
@klass.get_sidekiq_options['unique_until']
end
|
#actual_interval ⇒ Object
90
91
92
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 90
def actual_interval
@actual
end
|
#unique_key ⇒ Object
106
107
108
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 106
def unique_key
'unique_for'
end
|
#value_matches? ⇒ Boolean
98
99
100
101
102
103
104
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 98
def value_matches?
unless @actual
false
else
@actual > 0
end
end
|