test/functional/test_binary.rb in mongo_mapper-unstable-2009.11.8 vs test/functional/test_binary.rb in mongo_mapper-unstable-2009.11.18
- old
+ new
@@ -10,9 +10,9 @@
klass.collection.remove
doc = klass.new(:contents => '010101')
doc.save
- doc = klass.find(doc.id)
+ doc = doc.reload
doc.contents.to_s.should == ByteBuffer.new('010101').to_s
end
end
\ No newline at end of file