spec/lite_spec_helper.rb in mongoid-7.1.0.rc0 vs spec/lite_spec_helper.rb in mongoid-7.1.0
- old
+ new
@@ -13,10 +13,11 @@
# 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'
unless SpecConfig.instance.ci?
begin
require 'byebug'
rescue LoadError
@@ -56,9 +57,11 @@
TimeoutInterrupt.timeout(30) do
example.run
end
end
end
+
+ config.extend(LiteConstraints)
end
# require all shared examples
Dir['./spec/support/shared/*.rb'].sort.each { |file| require file }