From 33d3320689e1af0f1a9aa80838c3172409b86ef8 Mon Sep 17 00:00:00 2001 From: Scott Gress Date: Wed, 5 Feb 2014 15:52:06 -0600 Subject: [PATCH] Fixed blueprint config option and deprecated "--dev" option in httpHelper for integration tests --- test/integration/helpers/httpHelper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/helpers/httpHelper.js b/test/integration/helpers/httpHelper.js index 78bb83bc0..1b34abb7e 100644 --- a/test/integration/helpers/httpHelper.js +++ b/test/integration/helpers/httpHelper.js @@ -11,8 +11,8 @@ module.exports = { // Write routes object to blueprint config file writeBlueprint: function(config) { - config = {controllers: {blueprints: config}}; - fs.writeFileSync('config/controllers.js', 'module.exports = ' + JSON.stringify(config)); + config = {blueprints: config}; + fs.writeFileSync('config/blueprints.js', 'module.exports = ' + JSON.stringify(config)); }, // Starts sails server, makes request, returns response, kills sails server @@ -26,7 +26,7 @@ module.exports = { } // Start the sails server process - var sailsprocess = spawn('../bin/sails.js', ['lift', '--dev']); + var sailsprocess = spawn('../bin/sails.js', ['lift']); sailsprocess.on('error',function(err) { return callback(err);