[refactor][s]: rename rowCount to docCount and remove getLength method as can just use dataset.docCount.

This commit is contained in:
Rufus Pollock
2012-01-06 11:43:17 +00:00
parent e23354eb4e
commit 250f931c36
2 changed files with 10 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ test('new Dataset', function () {
dataset.fetch().then(function(dataset) {
equal(dataset.get('name'), metadata.name);
deepEqual(dataset.get('headers'), indata.headers);
equal(dataset.getLength(), 6);
equal(dataset.docCount, 6);
dataset.getRows(4, 2).then(function(documentList) {
deepEqual(indata.rows[2], documentList.models[0].toJSON());
});
@@ -158,7 +158,7 @@ test('Webstore Backend', function() {
dataset.fetch().then(function(dataset) {
deepEqual(['__id__', 'date', 'geometry', 'amount'], dataset.get('headers'));
equal(3, dataset.rowCount)
equal(3, dataset.docCount)
dataset.getRows().then(function(docList) {
equal(3, docList.length)
equal("2009-01-01", docList.models[0].get('date'));