From 84a9582bc0d2105aef0be0a0f2dd7db6f0a26429 Mon Sep 17 00:00:00 2001 From: Robb Lovell Date: Thu, 17 Jan 2013 12:00:59 -0800 Subject: [PATCH] attempted to write a test for hasmany all function. this commit has it commented out --- test/common_test.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/common_test.js b/test/common_test.js index 3caa8890..329a437e 100644 --- a/test/common_test.js +++ b/test/common_test.js @@ -542,6 +542,29 @@ function testOrm(schema) { it('hasMany should be cached', function (test) { //User.create(function (e, u) { // u.posts.create({}, function (e, p) { + // find all posts for a user. + /* User.all(function (err,users) { + for (var i=0;i