Sha256: 75b0b52964895604604fbfbdcb14797d0e08d2e60138964df113b73b88ebd259
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) MODELS = File.join(File.dirname(__FILE__), "models") $LOAD_PATH.unshift(MODELS) require 'mongoid' require 'voteable_mongoid' require 'rspec' require 'rspec/autorun' Mongoid.configure do |config| name = "voteable_mongoid_test" host = "localhost" config.master = Mongo::Connection.new.db(name) config.embedded_object_id = false end Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require File.basename(file) } User.collection.drop Post.collection.drop Comment.collection.drop
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongoid-0.7.2 | spec/spec_helper.rb |
voteable_mongoid-0.7.1 | spec/spec_helper.rb |