Commit b38ea434c219dcaa5b826f22d5047ca4f3d3fff0

corrected db integration specs for couch 0.8.0-incubator trunk

Commit diff

spec/integration/database_integration_spec.rb

 
6969 created_doc = response.to_document
7070
7171 resp = db.delete(created_doc.id, created_doc.revision)
72 resp.code.should == 202
72 resp.code.should == 200
7373
7474 resp = db.get(created_doc.id)
7575 resp.code.should == 404
9595 db.store(doc2)
9696 res = db.query(:map => "function(doc){ emit(null, doc.data) }",
9797 :reduce => "function(key, values){ return sum(values) }")
98 p res
9899 res.should be_instance_of CouchObject::Document
99 res.result.should == 4
100 res.rows[0]['value'].should == 4
100101 end
101102
102103end
toggle raw diff