Skip to content

Commit

Permalink
Fix nodeunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed Feb 20, 2013
1 parent d67b44f commit 7492338
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ exports.Schema = require('./lib/schema').Schema;
exports.AbstractClass = require('./lib/abstract-class').AbstractClass;
exports.Validatable = require('./lib/validatable').Validatable;

var baseSQL = './lib/sql';

exports.__defineGetter__('BaseSQL', function () {
return require(baseSQL);
});

exports.init = function (rw) {
if (typeof rw === 'string') {
railway.orm = exports;
Expand All @@ -22,3 +28,7 @@ try {
}
} catch (e) {}

var commonTest = './tests/common_test';
exports.__defineGetter__('test', function () {
return require(commonTest);
});
1 change: 0 additions & 1 deletion lib/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,3 @@ BaseSQL.prototype.createTable = function (model, cb) {
this.command('CREATE TABLE ' + this.tableEscaped(model) +
' (\n ' + this.propertiesSQL(model) + '\n)', cb);
};

0 comments on commit 7492338

Please sign in to comment.