Ok, very basic, needs refactoring Getting of Request and Access tokens (POST stylee)

works.
This commit is contained in:
ciaranj
2010-04-19 13:20:50 +01:00
parent d15500781e
commit 22402db273
20 changed files with 2956 additions and 632 deletions

33
spec/node.js Normal file
View File

@ -0,0 +1,33 @@
var kiwi= require('kiwi');
kiwi.require('express')
require.paths.unshift('spec', 'lib', 'spec/lib')
require("jspec")
print = require('sys').puts
quit = process.exit
readFile = require('fs').readFileSync
function run(specs) {
specs.forEach(function(spec){
JSpec.exec('spec/spec.' + spec + '.js')
})
}
specs = {
independant: [
'oauth',
'sha1'
]
}
switch (process.ARGV[2]) {
case 'all':
run(specs.independant)
break
default:
run([process.ARGV[2]])
}
Express.environment = 'test'
JSpec.run({ reporter: JSpec.reporters.Terminal, failuresOnly: true }).report()