Skip to content

Commit

Permalink
aftermath
Browse files Browse the repository at this point in the history
  • Loading branch information
Refael Ackermann committed Jan 22, 2014
1 parent e54e668 commit ed95074
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/test-REST-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("REST requests", function () {
if (~modName.indexOf('formage') || ~modName.indexOf('mongoose') || ~modName.indexOf('jugglingdb'))
delete require.cache[modName];
});
var formage = require('../index');
var formage = require('../');
var mongoose = ctx.mongoose = require("mongoose");
var conn_str = 'mongodb://localhost/formage-test' + this.test.parent.title.replace(/\s/g, '');
mongoose.connect(conn_str, function (err) {
Expand Down Expand Up @@ -74,7 +74,7 @@ describe("REST requests", function () {
delete require.cache[modName];
});
require('tungus');
var formage = require('../index');
var formage = require('../');
var mongoose = ctx.mongoose = require("mongoose");
var conn_str = 'tingodb://./.data/RESTontingodb';
mongoose.connect(conn_str, function (err) {
Expand Down
2 changes: 1 addition & 1 deletion test/test-edge-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("edge cases on mongoose", function () {
if (~modName.indexOf('formage') || ~modName.indexOf('mongoose') || ~modName.indexOf('jugglingdb'))
delete require.cache[modName];
});
this.formage = require('../index');
this.formage = require('../');
var mongoose = this.mongoose = require("mongoose");
this.express = require('express');
var conn_str = 'mongodb://localhost/formage-test' + this.test.parent.title.replace(/\s/g, '');
Expand Down
2 changes: 1 addition & 1 deletion test/test-misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("misc requests on mongoose", function () {
if (~modName.indexOf('formage') || ~modName.indexOf('mongoose') || ~modName.indexOf('jugglingdb'))
delete require.cache[modName];
});
var formage = require('../index');
var formage = require('../');
var mongoose = ctx.mongoose = require("mongoose");
var conn_str = 'mongodb://localhost/formage-test' + this.test.parent.title.replace(/\s/g, '');
mongoose.connect(conn_str, function (err) {
Expand Down
4 changes: 3 additions & 1 deletion utils/CompileTempletes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ jadeFiles.forEach(function(file) {
}
});
console.log('\x1B[36mformage\x1B[39m: compiled %d templates', jadeFiles.length);
fs.writeFileSync(path.join(__dirname, '..', 'generated', 'templates.js'), js);
var genDir = path.join(__dirname, '..', 'generated');
if (!fs.existsSync(genDir)) fs.mkdirSync(genDir);
fs.writeFileSync(path.join(genDir, 'templates.js'), js);

0 comments on commit ed95074

Please sign in to comment.