Sha256: 8fc463ca79e6872b7e15804e0f7bda3d847b7f02965b8375b1d6625811db33a8
Contents?: true
Size: 738 Bytes
Versions: 4
Compression:
Stored size: 738 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'mongoid' models_folder = File.join(File.dirname(__FILE__), 'mongoid/models') Mongoid.configure do |config| name = 'mongoid_likes_test' host = 'localhost' config.master = Mongo::Connection.new.db(name) config.autocreate_indexes = true end $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'app')) require 'mongoid_likes' require 'rspec' require 'rspec/autorun' Dir[ File.join(models_folder, '*.rb') ].each { |file| require file file_name = File.basename(file).sub('.rb', '') klass = file_name.classify.constantize klass.collection.drop }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoid_likes-0.1.1 | spec/spec_helper.rb |
mongoid_likes-0.1.0 | spec/spec_helper.rb |
mongoid_likes-0.0.2 | spec/spec_helper.rb |
mongoid_likes-0.0.1 | spec/spec_helper.rb |