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