Sha256: de4e4f71bbd06c55055188aa1a37fafd3e00f154cc28b1f45c3e76b5c5cb38e2
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 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_mongo' require 'rspec' require 'rspec/autorun' Mongoid.configure do |config| name = "voteable_mongo_test" host = "localhost" config.master = Mongo::Connection.new.db(name) end Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require File.basename(file) } User.collection.drop Post.collection.drop Comment.collection.drop Category.collection.drop
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongo-0.8.1 | spec/spec_helper.rb |