Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable warning message with sidekiq in rspec

I'm fairly new to rails and testing. 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, i get an error:

uninitialized constant RSpec::Sidekiq (NameError)
like image 876
Andrew Kostka Avatar asked Oct 20 '14 18:10

Andrew Kostka


Video Answer


1 Answers

If you have rspec 3, then you should try to add following code to rails_helper.rb instead of spec_helper.rb

like image 121
Alexander Karmes Avatar answered Nov 14 '22 22:11

Alexander Karmes