require 'rubygems' require 'minitest/autorun' require 'minitest/spec' require 'rack/test' ENV['RACK_ENV'] = 'test' require 'fanforce/worker' require 'fanforce/worker/errors' # Clean databases before each test case def clean_dbs Fanforce::Worker.set_config( iron_token: 'TF0YNz8na2H_reJ7_EoRnQAeKHM', iron_project_id: '53725dfe0db3ef0005000001', redis_url_errorlog: 'redis://localhost:6379/5' ) Fanforce::Worker.iron_mq.queues.all.each do |queue| queue.delete_queue end Fanforce::Worker::Errors.redis.flushdb Fanforce::Worker.log.level = Logger::FATAL end