wspurgin / rspec-sidekiq

RSpec for Sidekiq
https://github.com/wspurgin/rspec-sidekiq
Other
662 stars 133 forks source link

Add description attr_accessor to NullBatch #139

Closed dsantosmerino closed 6 years ago

dsantosmerino commented 7 years ago

Enables sidekiq_batch#description=

batch = Sidekiq::Batch.new
batch.description = "Batch description (this is optional)"
batch.on(:success, MyCallback, :to => user.email)
batch.jobs do
  rows.each { |row| RowWorker.perform_async(row) }
end

Reference: https://github.com/mperham/sidekiq/wiki/Batches

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.006%) to 97.784% when pulling 49de22b3cdfbdcfe346c9550d2744e64f5cb9282 on Badiapp:develop into 5fdfd542506c0eb93d03bbd46aa9b6e819ff38b4 on philostler:develop.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.006%) to 97.784% when pulling 49de22b3cdfbdcfe346c9550d2744e64f5cb9282 on Badiapp:develop into 5fdfd542506c0eb93d03bbd46aa9b6e819ff38b4 on philostler:develop.