lib/mongoid_seeder.rb in mongoid_seeder-0.0.3 vs lib/mongoid_seeder.rb in mongoid_seeder-0.0.4

- old
+ new

@@ -45,8 +45,8 @@ def self.drop Mongoid.session(:default).drop end def self.after_tests - Mongoid.session(:default).collections.select{|a| Config.condition_to_drop_collection.call(a) }.each(&:drop) + Mongoid.session(:default).collections.select{|a| Config.condition_to_drop_collection.call(a) }.each{|a| a.where.remove_all } end end