fixed the uuid count for the latest version of couchdb

also avoided CONSTANTS warnings, cleaned up the attachment specs, added missing fixtures
This commit is contained in:
Matt Aimonetti 2009-02-25 00:22:11 -08:00
parent fe489f2d38
commit 80317f31a5
13 changed files with 106 additions and 35 deletions

View file

@ -79,7 +79,7 @@ module CouchRest
def next_uuid(count = @uuid_batch_count)
@uuids ||= []
if @uuids.empty?
@uuids = CouchRest.post("#{@uri}/_uuids?count=#{count}")["uuids"]
@uuids = CouchRest.get("#{@uri}/_uuids?count=#{count}")["uuids"]
end
@uuids.pop
end