[refactor][xs]: rename docCount to recordCount.

This commit is contained in:
Rufus Pollock
2012-07-01 09:01:21 +01:00
parent f06b9ad1b1
commit b9555cce6a
5 changed files with 9 additions and 9 deletions

View File

@@ -94,14 +94,14 @@ test('DataProxy Backend', function() {
expect(6);
dataset.fetch().then(function() {
deepEqual(['__id__', 'date', 'price'], _.pluck(dataset.fields.toJSON(), 'id'));
equal(10, dataset.docCount)
equal(10, dataset.recordCount)
equal(dataset.currentRecords.models[0].get('date'), "1950-01");
// needed only if not stubbing
// start();
});
dataset.query({q: '1950-01'}).then(function() {
equal(dataset.docCount, 1);
equal(dataset.recordCount, 1);
equal(dataset.currentRecords.models[0].get('price'), '34.73');
});
$.ajax.restore();