Commit b38ea434c219dcaa5b826f22d5047ca4f3d3fff0
corrected db integration specs for couch 0.8.0-incubator trunk
| |   |
| 69 | 69 | created_doc = response.to_document |
| 70 | 70 | |
| 71 | 71 | resp = db.delete(created_doc.id, created_doc.revision) |
| resp.code.should == 202 |
| resp.code.should == 200 |
| 73 | 73 | |
| 74 | 74 | resp = db.get(created_doc.id) |
| 75 | 75 | resp.code.should == 404 |
| … | … | |
| 95 | 95 | db.store(doc2) |
| 96 | 96 | res = db.query(:map => "function(doc){ emit(null, doc.data) }", |
| 97 | 97 | :reduce => "function(key, values){ return sum(values) }") |
| p res |
| 98 | 99 | res.should be_instance_of CouchObject::Document |
| res.result.should == 4 |
| res.rows[0]['value'].should == 4 |
| 100 | 101 | end |
| 101 | 102 | |
| 102 | 103 | end |