wspurgin / rspec-sidekiq

RSpec for Sidekiq

Home Page:https://github.com/wspurgin/rspec-sidekiq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disabling RSpec::Sidekiq::NullStatus programmatically

danielnc opened this issue · 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?

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

Suggest improving the readme file