2 var express = require('../')
3 , request = require('supertest');
5 describe('app.all()', function(){
6 it('should add a router per method', function(done){
9 app.all('/tobi', function(req, res){
15 .expect('PUT', function(){
22 it('should run the callback for a method just once', function(done){
26 app.all('/*', function(req, res, next){
27 if (n++) return done(new Error('DELETE called several times'));