Ok, very basic, needs refactoring Getting of Request and Access tokens (POST stylee)
works.
This commit is contained in:
33
spec/node.js
Normal file
33
spec/node.js
Normal 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()
|
Reference in New Issue
Block a user