all specs pass against couchdb trunk

This commit is contained in:
Chris Anderson 2009-03-15 13:00:47 -07:00
parent 917157a0e7
commit 36c8bea453
4 changed files with 11 additions and 25 deletions

View file

@ -224,7 +224,8 @@ describe CouchRest::Document do
@db.save_doc({'_id' => @docid, 'will-exist' => 'here'})
end
it "should fail without a rev" do
lambda{@doc.move @docid}.should raise_error(RestClient::RequestFailed)
@doc.delete("_rev")
lambda{@doc.move @docid}.should raise_error(ArgumentError)
lambda{@db.get(@resp['id'])}.should_not raise_error
end
it "should succeed with a rev" do