Sha256: 0769028f9823413005412260d451aa1a9bb391ba1549e2078dfbd33432c6b69b
Contents?: true
Size: 673 Bytes
Versions: 3
Compression:
Stored size: 673 Bytes
Contents
require 'rubygems' require 'bundler/setup' Bundler.require(:default, :test, :development) require 'active_support' require 'active_support/all' require 'rails' require 'active_record' # Load mongoid config if Mongoid::VERSION < '3' ENV["MONGOID_ENV"] = "test" Mongoid.load!('./spec/mongoid2.yml') else Mongoid.load!('./spec/mongoid3.yml', :test) end #Mongoid.logger.level = :info RSpec.configure do |config| config.order = "random" config.before(:suite) do DatabaseCleaner[:mongoid].strategy = :truncation end config.before(:each) do DatabaseCleaner[:mongoid].start end config.after(:each) do DatabaseCleaner[:mongoid].clean end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
groupify-0.3.0 | spec/spec_helper.rb |
groupify-0.2.1 | spec/spec_helper.rb |
groupify-0.2.0 | spec/spec_helper.rb |