Search code examples
ruby-on-railssidekiq

Sidekiq sending jobs to test queue instead of developement queue


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?


Solution

  • 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.