spec/mongo_atomic_spec.rb in adapter-mongo-0.5.6 vs spec/mongo_atomic_spec.rb in adapter-mongo-0.6.0
- old
+ new
@@ -17,10 +17,9 @@
it "allows updating only part of a document" do
oid = BSON::ObjectId.new
adapter.write(oid, {'a' => 'c', 'b' => 'd'})
adapter.write(oid, {'a' => 'z'})
adapter.read(oid).should eq({
- '_id' => oid,
'a' => 'z',
'b' => 'd',
})
end
end