Joined May 2011
·

Richard Schneeman

heroku.com
·
Austin, Tx
·
·
·

Posted to Flush Sidekiq's Redis DB over 1 year ago

From Mike on twitter:

Sidekiq.redis { |r| puts r.flushdb }

https://twitter.com/mperham/status/895377361922777088

Thanks for this, I did want to note that typically the folder for tests is simply test without the s. Also from minitest's readme, they prefix files with test_ instead of postfixing them. So if you're following all conventions it ends up being

require "rake/testtask"

Rake::TestTask.new do |t|
  t.test_files = FileList['test/**/test_*.rb']
end
desc "Run tests"

task default: :test

Thanks for the write up, just wanted to save someone else a bit of time.

Achievements
223 Karma
1,005 Total ProTip Views