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, #failure_message, #failure_message_when_negated, #for, #interval_matches?, #interval_specified?, #matches?
Instance Method Details
#actual_interval ⇒ Object
72
73
74
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 72
def actual_interval
@actual
end
|
#unique_key ⇒ Object
80
81
82
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 80
def unique_key
'unique_for'
end
|
#value_matches? ⇒ Boolean
76
77
78
|
# File 'lib/rspec/sidekiq/matchers/be_unique.rb', line 76
def value_matches?
@actual && @actual > 0
end
|