I gave my Sidekiq workers the task of updating attributes of ActiveRecord model instances once a week.
At the beginning of the year I need to populate my database, and at the end of the year I need to reset everything.
So my jobs would use ActiveRecord.
Rails has a dedicated test database for tests.
I am mainly concerned about my tests using the dedicated test database.
To my understanding, the 'disable' mode isn't meant for running tests, as I found in a
codeship tutorial.
Would not this mean that in 'disable' mode the code in my Sidekiq workers would actually be executed writing changes in the development database?
Since testing all the process of queueing a job, pushing the job to Redis and performing the job would represent a complete test, I would use the 'disable' mode if it was meant to use the Rails test database.
What happens in 'inline' mode? Would the tests use the test database?