spec/spec_helper.rb in voteable_mongo-0.9.1 vs spec/spec_helper.rb in voteable_mongo-0.9.2
- old
+ new
@@ -1,11 +1,11 @@
require 'rubygems'
require 'bundler'
Bundler.setup
-
-if rand > 0.6
+# TODO: Need better solution
+if rand > 0.5
puts 'Mongoid'
require 'mongoid'
models_folder = File.join(File.dirname(__FILE__), 'mongoid/models')
Mongoid.configure do |config|
name = 'voteable_mongo_test'
@@ -31,7 +31,7 @@
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
+ klass.collection.drop
}