I've added specs to cover sidekiq jobs with rspec, but now, when I start a rails server, console, or just sidekiq, I have this warning:
WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.
And jobs are indeed not enqueued.
How can I switch back to the development API?
You might want to check if you've included the gem 'rspec-sidekiq' in the group :development. If it's the case, remove it from there and only call it in the :test group.
Following up on Thomas answer above, if you don't find the rspec-sidekiq
gem in your Gemfile, check if any part of your project code (such as a sidekiq initializer) has code like this:
require 'sidekiq/testing'
Sidekiq::Testing.inline!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With