rspec-sidekiq icon indicating copy to clipboard operation
rspec-sidekiq copied to clipboard

Disabling RSpec::Sidekiq::NullStatus programmatically

Open danielnc opened this issue 6 years ago • 1 comments

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 avatar Jul 10 '19 15:07 danielnc

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

Suggest improving the readme file

danielnc avatar Jul 11 '19 10:07 danielnc