spec/lite_spec_helper.rb in mongoid-7.0.5 vs spec/lite_spec_helper.rb in mongoid-7.0.6

- old
+ new

@@ -2,11 +2,10 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "mongoid" -require "rspec" # MRI 2.5 and JRuby 9.2 change visibility of Object#pp when 'pp' is required, # which happens when RSpec reports anything. This creates an issue for tests # that verify method forwarding. Work around by proactively loading 'pp'. # https://github.com/jruby/jruby/issues/5599 @@ -34,9 +33,13 @@ require 'timeout' TimeoutInterrupt = Timeout end RSpec.configure do |config| + config.expect_with(:rspec) do |c| + c.syntax = [:should, :expect] + end + if SpecConfig.instance.ci? config.add_formatter(RSpec::Core::Formatters::JsonFormatter, File.join(File.dirname(__FILE__), '../tmp/rspec.json')) end if SpecConfig.instance.ci?