Skip to content

Commit

Permalink
Merge pull request #4 from strongloop/feature/fix-jsmust
Browse files Browse the repository at this point in the history
test: add a temporary version of must.have.members
  • Loading branch information
bajtos committed May 21, 2014
2 parents c81d1ba + 14572a8 commit 8811ffc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*jshint latedef:nofunc */
'use strict';
var generators = require('yeoman-generator');
var must = require('must');

exports.createGenerator = createGenerator;

Expand All @@ -17,3 +18,13 @@ function createGenerator(name, path, deps, args, opts) {

return env.create(name, { arguments: args || [], options: opts || {} });
}

// temporary workaround until moll/js-must#16 is released
if (!must.prototype.members) {
must.prototype.members = function members(ary) {
var self = this;
ary.forEach(function(key) {
self.include(key);
});
};
}

0 comments on commit 8811ffc

Please sign in to comment.