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