Skip to content
Myr

node.js

This file

Path

spec/node.js

49 lines · 918 bytes · JavaScript

Last changed by

Merge branch 'master' of git://github.com/visionmedia/express into async_pluginsciaranjbefore adoption27ff134

History of this file

Take it

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

line 1why, one step back
1

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

line 2why, one step back
2require.paths.unshift('spec', 'lib', 'spec/lib')

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

lines 3–7why, one step back
3require("jspec")
4require("express")5require("express/spec")67print = puts

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

lines 8–9why, one step back
8quit = process.exit
9readFile = require('fs').readFileSync

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

line 10why, one step back
10

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 11–20why, one step back
11function run(specs) {
12 specs.forEach(function(spec){13 JSpec.exec('spec/spec.' + spec + '.js')14 })15}1617specs = {18 independant: [19 'core',20 'routing',

Mergevisionmediabefore adoptioncec6770

line 21why, one step back
21 'utils',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 22–25why, one step back
22 'request',
23 'mime',24 'static',25 'plugins',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933

line 26why, one step back
26 'plugins.cache',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 27–34why, one step back
27 'plugins.view',
28 'plugins.common-logger',29 'plugins.content-length',30 'plugins.method-override',31 'plugins.body-decoder',32 'plugins.redirect',33 'plugins.hooks',34 'plugins.cookie',

Started Session pluginvisionmediabefore adoption7238afb

line 35why, one step back
35 'plugins.session',

Merge branch 'flash'visionmediabefore adoption3863a76

line 36why, one step back
36 'plugins.flash',

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

line 37why, one step back
37 ]

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 38–47why, one step back
38}
3940switch (process.ARGV[2]) {41 case 'all':42 run(specs.independant)43 break44 default: 45 run([process.ARGV[2]])46}47

Merge branch 'cache-lifetime'visionmediabefore adoption5ce1306

line 48why, one step back
48Express.environment = 'test'

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

line 49why, one step back
49JSpec.run({ reporter: JSpec.reporters.Terminal, failuresOnly: true }).report()