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 ################################################################################