global.bluebird = require('bluebird');
global.chai = require('chai');
global.chaiHttp = require('chai-http');
global.sinon = require('sinon');
global.mongoose = require('mongoose');

mongoose.Promise = bluebird;
process.env.NODE_ENV = 'test';
process.env.MONGO_DB_URI = 'mongodb://developer:developer@ds147520.mlab.com:47520/web-jam-dev';
global.expect = chai.expect;
chai.use(chaiHttp);

@@ -174,16 +174,62 @@
 goose');
+%0Aglobal.mockgoose = require('sinon-mongoose');
 %0A%0Amongoo

add sinon mongoose package