Skip to content
Snippets Groups Projects
Commit 013d280d authored by Bruno Michel's avatar Bruno Michel
Browse files

Fix ruby tests with a new couchdb

parent a41b931b
Branches
Tags
No related merge requests found
...@@ -23,7 +23,9 @@ class Couch ...@@ -23,7 +23,9 @@ class Couch
def instances def instances
params = { params: { include_docs: true } } params = { params: { include_docs: true } }
res = JSON.parse @client["/global%2Finstances/_all_docs"].get(params).body res = JSON.parse @client["/global%2Finstances/_all_docs"].get(params).body
res["rows"].map {|row| row["doc"] } res["rows"].map { |row| row["doc"] }
rescue RestClient::NotFound
[]
end end
def get_doc(db, id) def get_doc(db, id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment