specs on right server

This commit is contained in:
Chris Anderson 2008-07-07 00:05:25 -07:00
parent 0e8c318ea0
commit 5add5b0b5c
2 changed files with 8 additions and 1 deletions

View file

@ -16,6 +16,13 @@ module Enumerable
grouped
end
end unless [].respond_to?(:group_by)
def group_by_fast
inject({}) do |grouped, element|
(grouped[yield(element)] ||= []) << element
grouped
end
end
end
class CouchRest

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../lib/couchrest'
COUCHHOST = "http://localhost:5985"
COUCHHOST = "http://localhost:5984"
TESTDB = 'couchrest-test'