Module: Sidekiq::TestingExtensions
- Included in:
- Extensions::DelayedMailer, Extensions::DelayedModel
- Defined in:
- lib/sidekiq/testing.rb
Instance Method Summary collapse
Instance Method Details
#jobs_for(klass) ⇒ Object
328 329 330 331 332 333 |
# File 'lib/sidekiq/testing.rb', line 328 def jobs_for(klass) jobs.select do |job| marshalled = job["args"][0] marshalled.index(klass.to_s) && YAML.load(marshalled)[0] == klass end end |