Skip to content

Commit

Permalink
Fixed blueprint config option and deprecated "--dev" option in httpHe…
Browse files Browse the repository at this point in the history
…lper for integration tests
  • Loading branch information
sgress454 committed Feb 5, 2014
1 parent 64e8527 commit 33d3320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/helpers/httpHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 33d3320

Please sign in to comment.