Sha256: 654eaa2b5fe6d0a2d6c2f23bd0b3a697ad3129fb29e729fc0cf027793968c4be

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'database_cleaner'
require 'mongoid'
require 'rspec'

Mongoid.configure do |config|
  name = 'mongoid_encryptor_test'
  config.master = Mongo::Connection.new.db(name)
end

require File.expand_path("../../lib/mongoid/encryptor", __FILE__)

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

RSpec.configure do |config|
  config.before(:all) { DatabaseCleaner.strategy = :truncation }
  config.before(:each) { DatabaseCleaner.clean }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-encryptor-0.0.5 spec/spec_helper.rb
mongoid-encryptor-0.0.4 spec/spec_helper.rb
mongoid-encryptor-0.0.1 spec/spec_helper.rb