[#128,backend/gdocs][s]: minor refactoring to make cleaner and have it actually work.

This commit is contained in:
Rufus Pollock
2012-05-26 18:07:36 +01:00
parent e9d1b8a55a
commit feaaf78639
2 changed files with 22 additions and 20 deletions

View File

@@ -68,7 +68,6 @@ test('DataProxy Backend', function() {
// needed only if not stubbing
// stop();
var backend = new recline.Backend.DataProxy.Backbone();
console.log(backend.readonly);
ok(backend.readonly);
equal(backend.__type__, 'dataproxy');
@@ -288,15 +287,10 @@ test("GDocs Backend", function() {
}
});
dataset.fetch().then(function(dataset) {
dataset.query().then(function(docList) {
deepEqual(['column-2', 'column-1'], _.pluck(dataset.fields.toJSON(), 'id'));
//equal(null, dataset.docCount)
dataset.query().then(function(docList) {
equal(3, docList.length);
equal("A", docList.models[0].get('column-1'));
// needed only if not stubbing
start();
});
equal(3, docList.length);
equal("A", docList.models[0].get('column-1'));
});
$.getJSON.restore();
});