How to disable warning message with sidekiq in rspec

I am new to rails and testing. The documentation says to add this code to spec_helper.rb:

RSpec::Sidekiq.configure do |config|
  config.warn_when_jobs_not_processed_by_sidekiq = false
end

but when I do this, I get an error message:

uninitialized constant RSpec::Sidekiq (NameError)
+4
source share
1 answer

If you have rspec 3, you should try adding the following code in rails_helper.rbinsteadspec_helper.rb

+6
source

All Articles