Skip to content

Commit

Permalink
0.0.2: Allow grunt 0.4.0rc5+
Browse files Browse the repository at this point in the history
* devDependency still pegged, since grunt-contrib-nodeunit is stuck
  • Loading branch information
gregrperkins committed Feb 2, 2013
1 parent 2506b2a commit 92f8aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-mocha-hack",
"description": "A hacky wrapper to run node.js lib Mocha tests via grunt.",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/gregrperkins/grunt-mocha-hack",
"forkedFrom": "http://github.com/yaymukund/grunt-simple-mocha",

Expand Down
3 changes: 2 additions & 1 deletion tasks/mocha-hack.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ var mochaReporterBase = require('mocha/lib/reporters/base');

module.exports = function(grunt) {
grunt.registerMultiTask('mocha-hack', 'Run tests with mocha', function() {
// TODO(gregp): remove this.file.src once 0.4.0rc4 and earlier deprecate
var paths = (this.filesSrc || this.file.src).map(path.resolve);
// Retrieve options from the grunt task.
var paths = this.file.src.map(path.resolve);
var options = this.options();
var gruntDone = this.async();

Expand Down

0 comments on commit 92f8aaf

Please sign in to comment.