spec/minitest_helper.rb in asynchronic-0.0.1 vs spec/minitest_helper.rb in asynchronic-0.1.0

- old
+ new

@@ -1,31 +1,29 @@ require 'coverage_helper' require 'minitest/autorun' +require 'minitest/great_expectations' require 'turn' require 'asynchronic' +require 'jobs' +require 'expectations' Turn.config do |c| c.format = :pretty c.natural = true end -logger = Logger.new($stdout) -logger.level = Logger::ERROR -Asynchronic.logger = logger +class Module + include Minitest::Spec::DSL +end -Asynchronic.connect_redis host: 'localhost', port: 6379 +Asynchronic.logger.level = Logger::FATAL -Asynchronic.default_queue = 'asynchronic_test' - -Asynchronic.archiving_path = File.expand_path('../tmp', File.dirname(__FILE__)) - -class MiniTest::Spec - +class Minitest::Spec before do - Redis.current.flushdb + Asynchronic.restore_default_configuration end - def redis - Redis.current + after do + Asynchronic::DataStore::Redis.new.clear + Asynchronic::QueueEngine::Ost.new.clear end - end \ No newline at end of file