From 37b49c276904b843fbc1c670d9c1cd3bcd24d23f Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Mon, 4 Nov 2013 14:23:30 +0100 Subject: [PATCH] added test --- UnitTests/HttpInterface/api-database-spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UnitTests/HttpInterface/api-database-spec.rb b/UnitTests/HttpInterface/api-database-spec.rb index cb6d85ba51..bd3119ec43 100644 --- a/UnitTests/HttpInterface/api-database-spec.rb +++ b/UnitTests/HttpInterface/api-database-spec.rb @@ -22,6 +22,19 @@ describe ArangoDB do result.should include("_system") end +################################################################################ +## retrieving the list of databases for the current user +################################################################################ + + it "retrieves the list of user-specific databases" do + doc = ArangoDB.log_get("#{prefix}-list-user", api + "/user") + + doc.code.should eq(200) + result = doc.parsed_response["result"] + + result.should include("_system") + end + ################################################################################ ## checking information about current database ################################################################################