Sha256: 865520e96288ca7eed6ca79e6313ca945e55aeda854bf3717e68b494dc074c67

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'bundler/setup'
require 'pry-byebug'
require 'database_cleaner'
require 'mongo_profiler'

Bundler.require(:default, :test)

ENV['MONGOID_ENV'] = 'test'

Mongoid.load!(File.join(File.dirname(__FILE__), 'mongoid.yml'))

class TestModel
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Attributes::Dynamic
end

Dir['./spec/support/**/*.rb'].each &method(:require)

RSpec.configure do |config|
  config.before do
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_profiler-0.0.2 spec/spec_helper.rb