Sha256: 4cc6ca5cebe61f622920eb64eb61856a63a72533907f4d3e8ff3ceb5db543836
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'bundler' require 'c2' Bundler.require(:default, :test) if defined?(Bundler) mongoid_file = File.join(File.dirname(__FILE__), "..", "config", "mongoid.yml") @settings = YAML.load(ERB.new(File.new(mongoid_file).read).result) Mongoid.configure do |config| config.from_hash(@settings['test']) end RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller config.mock_with :rspec config.after :suite do Mongoid.master.collections.select do |collection| collection.name !~ /system/ end.each(&:drop) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
c2-0.1.4 | spec/spec_helper.rb |
c2-0.1.3 | spec/spec_helper.rb |
c2-0.1.2 | spec/spec_helper.rb |
c2-0.1.1 | spec/spec_helper.rb |
c2-0.1.0 | spec/spec_helper.rb |