Sha256: 36f1d97fdad9051c837a1f5e4aa2087bcdef0493b6994044c7120554fb7d9fbd
Contents?: true
Size: 581 Bytes
Versions: 9
Compression:
Stored size: 581 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' gem 'mocha', '>= 0.9.8' require 'mocha' require 'mongoid' require 'gatoroid' require 'bson' require 'rspec' require 'rspec/autorun' Mongoid.configure do |config| name = "gatoroid_test" host = "localhost" port = "27017" config.master = Mongo::Connection.new.db(name) end RSpec.configure do |config| config.mock_with :mocha config.before :suite do Mongoid.master.collections.reject { |c| c.name =~ /^system\./ }.each(&:drop) end end
Version data entries
9 entries across 9 versions & 1 rubygems