Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ciaranj · committed by ciaranj · parents 6f7141a, 080e429 · Browse files · 8 files+25 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

8 files+25 added−16 removed

  • tests:+14 added−7 removed
  • other:+11 added−9 removed

8 files+25 added−16 removed

modified:spec/lib/jspec.js+1 added-1 removed
2 unmodified lines
34;(function(){56 JSpec = {7 version : '3.0.0',7 version : '3.1.0',8 assert : true,9 cache : {},10 suites : [],11 modules : [],
1762 unmodified lines
modified:spec/spec.collection.js+2 added-2 removed
269 unmodified lines
270 end271 272 describe '#keys()'273 it 'should return indices when array-like'274 $(['foo', 'bar']).keys().at(0).should.eql 0275 $(['foo', 'bar']).keys().at(1).should.eql 1274 $(['foo', 'bar']).keys().at(0).should.eql '0'275 $(['foo', 'bar']).keys().at(1).should.eql '1'276 end277 278 it 'should return keys when an object'279 $({ foo: 'bar', baz: 'raz' }).keys().at(0).should.eql 'foo'
193 unmodified lines
modified:spec/spec.request.js+1 added-2 removed
modified:spec/spec.routing.js+5 added-1 removed
84 unmodified lines
85 end86 87 describe 'with no response body'88 it 'should throw a InvalidResponseBody'89 // TODO: use throw_error when fixed...90 get('/user', function(){91 this.respond()92 })92 -{ get('/user') }.should.throw_error(/InvalidResponseBody: get "\/user" did not respond with a body string/)93 try { get('/user') }94 catch (e) {95 e.should.be_an_instance_of InvalidResponseBody96 }97 end98 end99 100 describe 'with regular expression'
221 unmodified lines
modified:spec/spec.static.js+5 added-1 removed
modified:.gitmodules+3 added-3 removed
1[submodule "support/haml"]2 path = support/haml3 url = git://github.com/creationix/haml-js.git1[submodule "spec/support/libxmljs"]2 path = spec/support/libxmljs3 url = git://github.com/sprsquish/libxmljs.git4[submodule "lib/support/haml"]5 path = lib/support/haml6 url = git://github.com/creationix/haml-js.git7[submodule "lib/support/js-oo"]
2 unmodified lines
modified:Makefile+5 added-2 removed
12NODE = node34init: lib/support/js-oo/Readme.md5 @git submodule update --init64test: spec/support/libxmljs/libxmljs.node7test: init spec/support/libxmljs/libxmljs.node8 @$(NODE) spec/node.js9 10app:11 @$(NODE) examples/app.js
3 unmodified lines
15 16spec/support/libxmljs/libxmljs.node:17 @scons -C spec/support/libxmljs libxmljs.node18 16.PHONY: test benchmark app19.PHONY: init test benchmark app
modified:Readme.md+3 added-4 removed
80 unmodified lines
81Express uses the [JSpec](http://jspec.info) BDD JavaScript testing82framework to write and run elegant spec suites. JSpec is froozen 83to spec/lib and does not require seperate installation.8485To run all specifications:85To run all specifications run the following command. This will ensure86git submodules are initialized and updated, as well as building test87related dependencies such as libxmljs.8889 $ make test90 91Run individual suites:
2 unmodified lines
94 $ node spec/node.js mime95 $ node spec/node.js routing96 ...97 96Runnning libxmljs related specs, if you have an architecture issue97then you will need to rebuild _spec/support/libxmljs.node_.9898Express is currently being developed with node --version:99 v0.1.21-66-g59a78d6100 101## More Information
34 unmodified lines