Sha256: 1ff703b2345f7eb102ef7b739103789ba3a7e2c971af3dc1d90516e8aec7e9b9

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 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)
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

2 entries across 2 versions & 1 rubygems

Version Path
voteable_mongoid-0.7.6 spec/spec_helper.rb
voteable_mongoid-0.7.5 spec/spec_helper.rb