Wrie and refactor guild tests

This commit is contained in:
Blade Barringer
2015-06-10 23:39:46 -05:00
parent 1bf38578bf
commit 8dde41d18a
2 changed files with 71 additions and 40 deletions
+1 -1
View File
@@ -40,8 +40,8 @@ var populateQuery = function(type, q, additionalFields){
q.populate('members', partyFields + (additionalFields ? (' ' + additionalFields) : ''));
else
q.populate(guildPopulate);
q.populate('invites', nameFields);
q.populate('leader', nameFields);
q.populate('invites', nameFields);
q.populate({
path: 'challenges',
match: (type=='habitrpg') ? {_id:{$ne:'95533e05-1ff9-4e46-970b-d77219f199e9'}} : undefined, // remove the Spread the Word Challenge for now, will revisit when we fix the closing-challenge bug