Skip to content
Myr

fixed the redirect(back) test

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

authored by csausdev · committed by csausdev · parent eda700d · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:spec/spec.core.js+1 added-1 removed
162 unmodified lines
163 describe '.back'164 it 'should redirect to the referrer'165 uri = 'http://vision-media.ca'166 get('foo', function(){ redirect(back) })167 request = mockRequest({ headers : { 'Referer': uri }})167 request = mockRequest({ headers : { 'referer': uri }})168 get('foo', { request: request }).headers.location.should.eql uri169 Express.back.should.eql uri170 end171 end
55 unmodified lines