c4db_scopeNames doesn't return the name of the default scope if it is empty.
Description
A database should always have a default scope, even if all of its collections (including the default collection) are gone.
To repro: create a new db, delete its default collection. c4db_scopeNames returns a zero length list. It should return a list containing the name of the default collection.
A database should always have a default scope, even if all of its collections (including the default collection) are gone.
To repro: create a new db, delete its default collection. c4db_scopeNames returns a zero length list. It should return a list containing the name of the default collection.