test/test_helper.rb in rocketjob-3.0.2 vs test/test_helper.rb in rocketjob-3.0.3
- old
+ new
@@ -1,21 +1,16 @@
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
-begin
- require 'active_model/serializers'
-rescue LoadError
- # Only used when running Rails 5
-end
require 'yaml'
require 'minitest/autorun'
require 'minitest/stub_any_instance'
require 'awesome_print'
require 'rocketjob'
SemanticLogger.add_appender(file_name: 'test.log', formatter: :color)
SemanticLogger.default_level = :debug
RocketJob::Config.load!('test', 'test/config/mongoid.yml')
-Mongoid.logger = SemanticLogger[Mongoid]
+Mongoid.logger = SemanticLogger[Mongoid]
Mongo::Logger.logger = SemanticLogger[Mongo]
#RocketJob::Job.collection.database.command(dropDatabase: 1)