test/test_helper.rb in rocketjob-2.1.3 vs test/test_helper.rb in rocketjob-3.0.0.alpha
- old
+ new
@@ -15,6 +15,9 @@
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new
SemanticLogger.add_appender(file_name: 'test.log', formatter: :color)
SemanticLogger.default_level = :debug
-RocketJob::Config.load!('test', 'test/config/mongo.yml')
+RocketJob::Config.load!('test', 'test/config/mongoid.yml')
+Mongoid.logger = SemanticLogger[Mongoid]
+
+#RocketJob::Job.collection.database.command(dropDatabase: 1)