require 'rubygems' require 'bundler/setup' #set environment to test ENV['RACK_ENV'] = 'test' require 'classicCMS' # and any other gems you need require 'methods' RSpec.configure do |config| Mongoid.load!("spec/config/mongoid.yml") config.before(:each) do Mongoid.master.collections.reject { |c| c.name =~ /^system./ }.each(&:drop) end #for storing default settings during testing $default = {} end