summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-06-17 16:05:52 -0700
committerelijah <elijah@riseup.net>2016-06-17 16:05:52 -0700
commit6915426dda2a7ca054875f76f74376b481baae08 (patch)
tree9af953c108e24057b783b1ce0663ca4dda2f9ef8
parent6f10747ef7635693ddb6e6a00eb9bb1a18864724 (diff)
tests - default to admin access when testing existence of a db
-rw-r--r--tests/helpers/couchdb_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/helpers/couchdb_helper.rb b/tests/helpers/couchdb_helper.rb
index b9085c1e..efb2c2bf 100644
--- a/tests/helpers/couchdb_helper.rb
+++ b/tests/helpers/couchdb_helper.rb
@@ -124,6 +124,7 @@ class LeapTest
# returns true if the per-user db created by soledad-server exists.
#
def user_db_exists?(user_id, options=nil)
+ options = {:username => 'admin'}.merge(options || {})
db_name = "user-#{user_id}"
url = couchdb_url("/#{db_name}", options)
get(url) do |body, response, error|