Sha256: 53d426c1b8829734d5ec64e7529e10d789ae031cd321ff25cd27d1cef5e989e0

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rubygems'
require 'rspec'
require 'rspec/its'
require 'mongoid-scroll'

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

Mongoid.configure do |config|
  config.connect_to 'mongoid_scroll_test'
end

RSpec.configure do |config|
  config.before :all do
    Mongoid.logger.level = Logger::INFO
    Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5?
  end
  config.before :each do
    Mongoid.purge!
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-scroll-0.3.5 spec/spec_helper.rb
mongoid-scroll-0.3.4 spec/spec_helper.rb