add basic integration tests

This commit is contained in:
Jose F. Romaniello
2012-11-16 12:43:12 -03:00
parent d8c7c0ed7d
commit 3dc3096b15
8 changed files with 190 additions and 4 deletions

View File

@ -4,7 +4,7 @@ var connectUtils = require('connect').utils,
var overwrite = function(overwritten) {
return (function() {
if( arguments.length > 1 ) {
for( objects in arguments ) {
for(var objects in arguments ) {
overwrite( this, arguments[objects] );
}
}
@ -17,7 +17,7 @@ var overwrite = function(overwritten) {
return this;
}).apply(overwritten, Array.prototype.slice.call(arguments, 1));
}
};
function authorize(options) {
var auth = {