all specs pass against couchdb trunk
This commit is contained in:
parent
917157a0e7
commit
36c8bea453
4 changed files with 11 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue