spec/lite_spec_helper.rb in mongoid-7.2.0.rc1 vs spec/lite_spec_helper.rb in mongoid-7.2.0
- old
+ new
@@ -1,10 +1,11 @@
# frozen_string_literal: true
# encoding: utf-8
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "shared", "lib"))
# Load byebug before mongoid, to place breakpoints in the lib methods.
# But SpecConfig needs the driver code - require the driver here.
require "mongo"
@@ -13,12 +14,12 @@
# that verify method forwarding. Work around by proactively loading 'pp'.
# https://github.com/jruby/jruby/issues/5599
require 'pp'
require 'support/spec_config'
-require 'support/lite_constraints'
-require "support/session_registry"
+require 'mrss/lite_constraints'
+require "support/session_registry"
unless SpecConfig.instance.ci?
begin
require 'byebug'
rescue LoadError
@@ -66,10 +67,10 @@
example.run
end
end
end
- config.extend(LiteConstraints)
+ config.extend(Mrss::LiteConstraints)
end
# require all shared examples
Dir['./spec/support/shared/*.rb'].sort.each { |file| require file }