extracted the rest API to its own module
This commit is contained in:
parent
0958be55f7
commit
9141669df1
4 changed files with 56 additions and 48 deletions
|
@ -369,7 +369,7 @@ describe CouchRest::Database do
|
|||
it "should delete the attachment" do
|
||||
lambda { @db.fetch_attachment(@doc,'test.html') }.should_not raise_error
|
||||
@db.delete_attachment(@doc, "test.html")
|
||||
lambda { @db.fetch_attachment(@doc,'test.html') }.should raise_error(RestClient::ResourceNotFound)
|
||||
@db.fetch_attachment(@doc,'test.html').should be_nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue