[#174,refactor][s]: rename currentRecords to records on Dataset.

This commit is contained in:
Rufus Pollock
2012-07-05 15:37:17 +01:00
parent 21296aa18c
commit a58f5e5bb0
22 changed files with 62 additions and 62 deletions

View File

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