Sha256: cf45f7aef373afcad9d232a97e57af91c45e821a0e9767a2853cc49b2604f110
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'mongoid' models_folder = File.join(File.dirname(__FILE__), 'mongoid/models') Mongoid.configure do |config| name = 'voteable_mongo_test' host = 'localhost' config.connect_to(name) end $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'voteable_mongo' 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 begin klass.collection.drop rescue Exception => e print e.message end }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rs_voteable_mongo-1.1.0 | spec/spec_helper.rb |
rs_voteable_mongo-1.0.2 | spec/spec_helper.rb |
rs_voteable_mongo-1.0.1 | spec/spec_helper.rb |
rs_voteable_mongo-1.0.0 | spec/spec_helper.rb |