wspurgin / rspec-sidekiq

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

Disabling RSpec::Sidekiq::NullStatus programmatically #161

Closed danielnc closed 1 year ago

danielnc commented 5 years ago

Hi,

I am wondering if there is a way to disable RSpec::Sidekiq::NullStatus for Sidekiq::Batch for a specific test.

I want to test a real scenario of the sidekiq::batch object(Sidekiq::Batch::Status.new(params[:batch_id]) to be more precise) and I want to use the real object, so I know that I am serializing it properly

Is there a way that I can disable NullStatus only for a specific test in my suite?

danielnc commented 5 years ago

Just had a chance to dig in the code and saw the metadata stub_batches

Suggest improving the readme file