Sha256: b7d1a1701deca75225cbde98eed7e127cb5f68935ed125784643da1916133a2e

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

$LOAD_PATH << File.expand_path('../../lib', __FILE__)

require 'mongoid'
require 'mongoid-rspec'
require 'mongoid/enum'

ENV['MONGOID_ENV'] = 'test'

RSpec.configure do |config|
  config.include Mongoid::Matchers
  # config.before(:suite) do
  #   DatabaseCleaner.strategy = :truncation
  # end

  config.after(:each) do
    Mongoid.purge!
  end
end

I18n.load_path << 'spec/support/app.en.yml'
I18n.default_locale = :en

Mongo::Logger.logger.level = Logger::INFO if Mongoid::VERSION >= '5'

Mongoid.load!(File.expand_path('../support/mongoid.yml', __FILE__), :test)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-enum-i18n-0.8.1 spec/spec_helper.rb
mongoid-enum-i18n-0.5.0 spec/spec_helper.rb
mongoid-enum-i18n-0.3.3 spec/spec_helper.rb
mongoid-enum-i18n-0.3.0 spec/spec_helper.rb
mongoid-enum-i18n-0.2.9 spec/spec_helper.rb