Skip to content

Instantly share code, notes, and snippets.

@ngw
Created August 6, 2010 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngw/512019 to your computer and use it in GitHub Desktop.
Save ngw/512019 to your computer and use it in GitHub Desktop.
require.paths.unshift( __dirname + '..' );
var sys = require( 'sys' ),
vows = require( 'vows' ),
assert = require( 'assert' );
var app = require( __dirname + '/..' + '/app.js' );
vows.describe( 'The Kenji app' ).addBatch( {
'The application configuration': {
topic: function( ) {
return app;
},
'runs on a port': function( app ) {
assert.isTrue( app.port, 3000 );
}
}
} ).export( module );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment