extracted the rest API to its own module

This commit is contained in:
Matt Aimonetti 2009-07-29 18:32:34 -07:00
parent 0958be55f7
commit 9141669df1
4 changed files with 56 additions and 48 deletions

View file

@ -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