Sha256: de735c3685bc7fcb439fe6e7769855bc2e0ba503b7af727e76c33aba290285e9

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

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

require 'mongoid'
require 'mongoid/i18n'
require 'rspec'
require 'rspec/autorun'

RSpec.configure do |config|
  config.mock_with :mocha
  config.after :each do
    Mongoid.master.collections.reject { |c| c.name =~ /^system\./ }.each(&:drop)
  end
end

Mongoid.configure do |config|
  config.master = Mongo::Connection.new.db('mongoid_i18n_test')
  config.allow_dynamic_fields = false
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid_i18n-0.5.1 spec/spec_helper.rb
mongoid_i18n-0.5.0 spec/spec_helper.rb
mongoid_i18n-0.4.0 spec/spec_helper.rb
mongoid_i18n-0.3.1 spec/spec_helper.rb