spec/spec_helper.rb in rspec-activemodel-mocks-1.1.0 vs spec/spec_helper.rb in rspec-activemodel-mocks-1.2.0

- old
+ new

@@ -1,12 +1,17 @@ +# frozen_string_literal: true require 'rspec/active_model/mocks' require 'active_record' -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} +Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f} -class RSpec::Core::ExampleGroup - def self.run_all(reporter=nil) - run(reporter || RSpec::Mocks::Mock.new('reporter').as_null_object) +module RSpec + module Core + class ExampleGroup + def self.run_all(reporter=nil) + run(reporter || RSpec::Mocks::Mock.new('reporter').as_null_object) + end + end end end RSpec.configure do |config| real_world = nil