From c639ae65c2a0e779a5b45500a47234f270bb890b Mon Sep 17 00:00:00 2001 From: Richard McIntyre Date: Wed, 18 Dec 2013 08:16:46 +0000 Subject: [PATCH] Require server in gruntfile for mocha tests. --- gruntfile.js | 3 ++- test/mocha/article/model.js | 1 - test/mocha/user/model.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index a85f100fc4..5e45d1b62f 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -63,7 +63,8 @@ module.exports = function(grunt) { }, mochaTest: { options: { - reporter: 'spec' + reporter: 'spec', + require: 'server.js' }, src: ['test/mocha/**/*.js'] }, diff --git a/test/mocha/article/model.js b/test/mocha/article/model.js index d348785c5c..9377f577d5 100644 --- a/test/mocha/article/model.js +++ b/test/mocha/article/model.js @@ -4,7 +4,6 @@ * Module dependencies. */ var should = require('should'), - app = require('../../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Article = mongoose.model('Article'); diff --git a/test/mocha/user/model.js b/test/mocha/user/model.js index 3afa048ab3..fada6580a0 100644 --- a/test/mocha/user/model.js +++ b/test/mocha/user/model.js @@ -4,7 +4,6 @@ * Module dependencies. */ var should = require('should'), - app = require('../../../server'), mongoose = require('mongoose'), User = mongoose.model('User');