specs on right server
This commit is contained in:
parent
0e8c318ea0
commit
5add5b0b5c
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../lib/couchrest'
|
||||
|
||||
COUCHHOST = "http://localhost:5985"
|
||||
COUCHHOST = "http://localhost:5984"
|
||||
TESTDB = 'couchrest-test'
|
Loading…
Reference in a new issue