Skip to content
Myr

spec.plugins.common-logger.js

This file

Path

spec/spec.plugins.common-logger.js

23 lines · 510 bytes · JavaScript

Last changed by

Fixed redirect helpers due to Request changevisionmediabefore adoption995cde7

History of this file

Take it

The walk stopped after 200 commits: lines older than 521fb0b point at it.

Pre-loading view engine modules to prevent overhead of module loadingvisionmediabefore adoption521fb0b

lines 1–14why, one step back
1
2describe 'Express'3 before_each4 reset()5 use(require('express/plugins/common-logger').CommonLogger)6 end7 8 describe 'CommonLogger'9 describe 'on'10 describe 'response'11 it 'should output in common log format'12 GLOBAL.stub('puts')13 GLOBAL.should.receive('puts')14 get('/style.css', function(){

Fixed redirect helpers due to Request changevisionmediabefore adoption995cde7

line 15why, one step back
15 this.contentType('css')

Pre-loading view engine modules to prevent overhead of module loadingvisionmediabefore adoption521fb0b

lines 16–23why, one step back
16 return 'body { background: #000; }'
17 })18 get('/style.css')19 end20 end21 end22 end23end