Skip to content
Myr

Fixed some cookie specs

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

authored by visionmedia · committed by visionmedia · parent 14befd6 · Browse files · 3 files+28 added−26 removed
This commit

State

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

Diff stats

3 files+28 added−26 removed

  • tests:+7 added−5 removed
  • other:+21 added−21 removed

3 files+28 added−26 removed

modified:lib/express/plugins/cookie.js+21 added-21 removed
modified:spec/spec.plugins.cookie.js+6 added-4 removed
modified:spec/spec.plugins.redirect.js+1 added-1 removed
7 unmodified lines
8 describe 'Redirect'9 describe 'redirect()'10 it 'should set status to 302'11 get('/logout', function(){12 redirect('/')12 this.redirect('/')13 })14 get('/logout').status.should.eql 30215 get('/logout').headers['location'].should.eql '/'16 end
46 unmodified lines