Skip to content
Myr

Misc

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

authored by visionmedia · committed by visionmedia · parent 947767a · Browse files · 1 file+2 added−2 removed
This commit

State

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

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:spec/spec.core.js+2 added-2 removed
170 unmodified lines
171 end172 end173 174 describe '.back'175 it 'should redirect to the reeferrer'175 it 'should redirect to the referrer'176 uri = 'http://vision-media.ca'177 request = mockRequest({ headers : [['Referer', uri]] })178 get('foo', function(){ redirect(back) })178 get('foo', function(){ p(back); redirect(back) })179 get('foo', { request : request }).headers.location.should.eql uri180 Express.back.should.eql uri181 end182 end
53 unmodified lines