Sha256: eab7584f599e37497575e9e5c9a68a1f05ddff701895e44829eb1e9de4750bb4

Contents?: true

Size: 721 Bytes

Versions: 3

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true
require 'rspec/active_model/mocks'
require 'active_record'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}

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

  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.before(:each) do
    real_world = RSpec.world
    RSpec.instance_variable_set(:@world, RSpec::Core::World.new)
  end
  config.after(:each) do
    RSpec.instance_variable_set(:@world, real_world)
  end

  config.order = :random
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rspec-activemodel-mocks-1.2.1 spec/spec_helper.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-activemodel-mocks-1.2.0/spec/spec_helper.rb
rspec-activemodel-mocks-1.2.0 spec/spec_helper.rb