test/functional/test_binary.rb in djsun-mongo_mapper-0.5.6.6 vs test/functional/test_binary.rb in djsun-mongo_mapper-0.5.8.1
- old
+ new
@@ -5,10 +5,10 @@
klass = Class.new do
include MongoMapper::Document
set_collection_name 'test'
key :contents, Binary
end
- klass.collection.clear
+ klass.collection.remove
doc = klass.new(:contents => '010101')
doc.save
doc = klass.find(doc.id)
\ No newline at end of file