specs on right server
This commit is contained in:
parent
0e8c318ea0
commit
5add5b0b5c
|
@ -16,6 +16,13 @@ module Enumerable
|
||||||
grouped
|
grouped
|
||||||
end
|
end
|
||||||
end unless [].respond_to?(:group_by)
|
end unless [].respond_to?(:group_by)
|
||||||
|
|
||||||
|
def group_by_fast
|
||||||
|
inject({}) do |grouped, element|
|
||||||
|
(grouped[yield(element)] ||= []) << element
|
||||||
|
grouped
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CouchRest
|
class CouchRest
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../lib/couchrest'
|
require File.dirname(__FILE__) + '/../lib/couchrest'
|
||||||
|
|
||||||
COUCHHOST = "http://localhost:5985"
|
COUCHHOST = "http://localhost:5984"
|
||||||
TESTDB = 'couchrest-test'
|
TESTDB = 'couchrest-test'
|
Loading…
Reference in a new issue