Sha256: 62224b985d4e089fc72767e5f7255b5ab4c7353fec772094c686ec690e44ce11
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
classicCMS-0.2.3 | spec/spec_helper.rb |
classicCMS-0.2.2 | spec/spec_helper.rb |
classicCMS-0.2.1 | spec/spec_helper.rb |
classicCMS-0.2.0 | spec/spec_helper.rb |