fixed the database attachment specs
This commit is contained in:
parent
9141669df1
commit
beb801d1bd
1 changed files with 3 additions and 2 deletions
|
@ -368,8 +368,9 @@ describe CouchRest::Database do
|
|||
end
|
||||
it "should delete the attachment" do
|
||||
lambda { @db.fetch_attachment(@doc,'test.html') }.should_not raise_error
|
||||
@db.delete_attachment(@doc, "test.html")
|
||||
@db.fetch_attachment(@doc,'test.html').should be_nil
|
||||
@db.delete_attachment(@doc, "test.html")
|
||||
@doc = @db.get('mydocwithattachment') # avoid getting a 409
|
||||
lambda{ @db.fetch_attachment(@doc,'test.html')}.should raise_error
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue