Sha256: 90c98f52b5582400a8aab5169012ac8d910ac10b30220a6955b8cc3c99e4b060
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 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 'trackoid' require 'spec' require 'spec/autorun' Mongoid.configure do |config| name = "trackoid_test" host = "localhost" port = "27017" # config.master = Mongo::Connection.new(host, port, :logger => Logger.new(STDOUT)).db(name) config.master = Mongo::Connection.new.db(name) config.use_object_ids = true end Spec::Runner.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trackoid-0.1.10 | spec/spec_helper.rb |